🎨 except: => except Exception:

This commit is contained in:
Gina Häußge committed 2019-03-06 15:10:38 +01:00
1 parent 4e2afbc170
commit aab629d80e
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -1614,7 +1614,7 @@ class LocalFileStorage(StorageInterface):
# already migrated
try:
os.remove(metadata_path_yaml)
except:
except Exception:
self._logger.exception("Error while removing .metadata.yaml from {path}".format(**locals()))
return
@@ -1634,7 +1634,7 @@ class LocalFileStorage(StorageInterface):
try:
os.remove(metadata_path_yaml)
except:
except Exception:
self._logger.exception("Error while removing .metadata.yaml from {path}".format(**locals()))
@contextmanager
@@ -127,7 +127,7 @@ class PrinterSafetyCheckPlugin(octoprint.plugin.AssetPlugin,
# execute method
try:
method(*args, **kwargs)
except:
except Exception:
self._logger.exception("There was an error running method {} on check {!r}".format(check_type, check))
continue