Skip to content

Commit

Permalink
Use fully-qualified exception names in .pylintrc
Browse files Browse the repository at this point in the history
This avoids a deprecation warning from pylint.  Also fix an incorrect
comment.
  • Loading branch information
DemiMarie committed Jan 14, 2024
1 parent bbc66c1 commit 23d87ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -368,4 +368,4 @@ exclude-protected=_asdict,_fields,_replace,_source,_make

# Exceptions that will emit a warning when being caught. Defaults to
# "Exception"
overgeneral-exceptions=Exception
overgeneral-exceptions=builtins.Exception,builtins.BaseException
2 changes: 1 addition & 1 deletion qrexec/tools/qrexec_legacy_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def main(args=None):
str(POLICYPATH), '--full-output'],
output=current_state_string)
current_state = set(current_state_string.getvalue().split('\n'))
except Exception: #pylint: disable-broad-except
except Exception: # pylint: disable=broad-except
current_state = 'ERROR'

if initial_state != current_state:
Expand Down

0 comments on commit 23d87ef

Please sign in to comment.