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:
|
try:
|
||||||
self.save()
|
self.save()
|
||||||
except:
|
except:
|
||||||
|
# pylint: disable=W0702
|
||||||
logging.exception('Error saving activity object to datastore')
|
logging.exception('Error saving activity object to datastore')
|
||||||
self._show_keep_failed_dialog()
|
self._show_keep_failed_dialog()
|
||||||
return False
|
return False
|
||||||
|
@ -335,6 +335,7 @@ def _cleanup_temp_files():
|
|||||||
try:
|
try:
|
||||||
os.unlink(path)
|
os.unlink(path)
|
||||||
except:
|
except:
|
||||||
|
# pylint: disable=W0702
|
||||||
logging.exception('Exception occured in _cleanup_temp_files')
|
logging.exception('Exception occured in _cleanup_temp_files')
|
||||||
|
|
||||||
atexit.register(_cleanup_temp_files)
|
atexit.register(_cleanup_temp_files)
|
||||||
|
Loading…
Reference in New Issue
Block a user