-
-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make pylint happy about handle_exception
The master branch has a better fix, deduplicating this function. But code changes related to PyQt5 makes it non-trivial to backport. Fix the warning directly, in all the function copies.
- Loading branch information
Showing
5 changed files
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -410,7 +410,7 @@ def backup_location_changed(self, new_dir=None): | |
# Copyright (c) 2002-2007 Pascal Varet <[email protected]> | ||
|
||
def handle_exception(exc_type, exc_value, exc_traceback): | ||
filename, line, dummy, dummy = traceback.extract_tb(exc_traceback).pop() | ||
filename, line, _, _ = traceback.extract_tb(exc_traceback).pop() | ||
filename = os.path.basename(filename) | ||
error = "%s: %s" % (exc_type.__name__, exc_value) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -303,7 +303,7 @@ def save_and_apply(self): | |
# Copyright (c) 2002-2007 Pascal Varet <[email protected]> | ||
|
||
def handle_exception(exc_type, exc_value, exc_traceback): | ||
filename, line, dummy, dummy = traceback.extract_tb(exc_traceback).pop() | ||
filename, line, _, _ = traceback.extract_tb(exc_traceback).pop() | ||
filename = os.path.basename(filename) | ||
error = "%s: %s" % (exc_type.__name__, exc_value) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters