1
0
mirror of https://github.com/ihabunek/toot synced 2024-12-22 23:08:17 +01:00

Fix flake8 errors

This commit is contained in:
Ivan Habunek 2022-12-27 10:41:06 +01:00
parent 8595e39f4c
commit ded7a0c50d
No known key found for this signature in database
GPG Key ID: F5F0623FF5EBCB3D
3 changed files with 4 additions and 3 deletions

View File

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

View File

@ -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")

View File

@ -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):