Skip to content

Commit

Permalink
make linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
gflohr committed Jul 5, 2024
1 parent 06c1186 commit d38e429
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
class ImportDialog(QDialog):


# pylint: disable=too-few-public-methods, too-many-instance-attributes
# pylint: disable=too-few-public-methods, too-many-instance-attributes, too-many-statements
def __init__(self) -> None:
if mw is None:
raise RuntimeError(_('Cannot run without main window!'))
Expand Down Expand Up @@ -209,7 +209,8 @@ def accept(self) -> None:
def _on_success(counts: Union[Exception, tuple[int, int, int, int, int]]):
if isinstance(counts, Exception):
x = counts
if (isinstance(x, OSError)):
if isinstance(x, OSError):
# pylint: disable=consider-using-f-string
show_critical(_('There was an error importing a file: {error}'.format(error=x)))
else:
self._show_exception(counts)
Expand Down

0 comments on commit d38e429

Please sign in to comment.