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:
Sascha Silbe 2010-10-15 19:47:41 +00:00
parent 431e36a427
commit ff16cb0fa9
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -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)