pylint cleanup: disable warnings for reasonable catch-all exception handlers
Reviewed-by: James Cameron <quozl@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org> CC: Aleksey Lim <alsroot@member.fsf.org>
This commit is contained in:
parent
431e36a427
commit
ff16cb0fa9
@ -823,6 +823,7 @@ class Activity(Window, gtk.Container):
|
||||
try:
|
||||
self.save()
|
||||
except:
|
||||
# pylint: disable=W0702
|
||||
logging.exception('Error saving activity object to datastore')
|
||||
self._show_keep_failed_dialog()
|
||||
return False
|
||||
|
@ -335,6 +335,7 @@ def _cleanup_temp_files():
|
||||
try:
|
||||
os.unlink(path)
|
||||
except:
|
||||
# pylint: disable=W0702
|
||||
logging.exception('Exception occured in _cleanup_temp_files')
|
||||
|
||||
atexit.register(_cleanup_temp_files)
|
||||
|
Loading…
Reference in New Issue
Block a user