From c1bddcd59427a623295d7df617fd0dd1be423a05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Tue, 21 Jul 2020 15:56:05 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=8F=EF=B8=8F=20Fix=20a=20comment?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/octoprint/plugins/backup/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/octoprint/plugins/backup/__init__.py b/src/octoprint/plugins/backup/__init__.py index 83f7d5574..ff1d437a4 100644 --- a/src/octoprint/plugins/backup/__init__.py +++ b/src/octoprint/plugins/backup/__init__.py @@ -670,7 +670,7 @@ class BackupPlugin(octoprint.plugin.SettingsPlugin, defaults = [os.path.join(basedir, "config.yaml"),] + \ [os.path.join(basedir, folder) for folder in default_settings["folder"].keys()] - # check how much many bytes we are about to backup + # check how many bytes we are about to backup size = os.stat(configfile).st_size for folder in default_settings["folder"].keys(): if folder in exclude or folder in exclude_by_default: @@ -741,6 +741,7 @@ class BackupPlugin(octoprint.plugin.SettingsPlugin, if callable(on_backup_done): on_backup_done(name, final_path, exclude) + except Exception as exc: ## noqa: F841 # TODO py3: use the exception, not sys.exc_info() if callable(on_backup_error):