Fix flake8 errors

pull/276/head
Ivan Habunek 2022-12-27 10:41:06 +01:00
rodzic 8595e39f4c
commit ded7a0c50d
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: F5F0623FF5EBCB3D
3 zmienionych plików z 4 dodań i 3 usunięć

Wyświetl plik

@ -1,3 +1,4 @@
[flake8]
max-line-length=100
exclude=build,tests
ignore=E128
max-line-length=120

Wyświetl plik

@ -521,7 +521,7 @@ class TUI(urwid.Frame):
else:
self.footer.set_error_message("Server returned empty translation")
response = None
except:
except Exception:
response = None
self.footer.set_error_message("Translate server error")

Wyświetl plik

@ -41,7 +41,7 @@ def parse_html(html):
paragraphs = [re.split("<br */?>", p) for p in paragraphs if p]
# Convert each line in each paragraph to plain text:
return [[get_text(l) for l in p] for p in paragraphs]
return [[get_text(line) for line in p] for p in paragraphs]
def format_content(content):