pylint cleanup: disable warnings for reasonable catch-all exception handlers

Reviewed-by: James Cameron <[email protected]>
Acked-by: Simon Schampijer <[email protected]>
CC: Aleksey Lim <[email protected]>
This commit is contained in:
Sascha Silbe
2010-11-23 17:14:35 +01:00
parent 431e36a427
commit ff16cb0fa9
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -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
+1
View File
@@ -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)