From 78d8efed7fc84eefa687a08fa06c6604e4c52042 Mon Sep 17 00:00:00 2001 From: Ben Sturmfels Date: Thu, 23 Sep 2021 21:38:42 +1000 Subject: Fix some unused imports and local variables. --- mediagoblin/gmg_commands/dbupdate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mediagoblin/gmg_commands/dbupdate.py') diff --git a/mediagoblin/gmg_commands/dbupdate.py b/mediagoblin/gmg_commands/dbupdate.py index c802b374..fc506ee5 100644 --- a/mediagoblin/gmg_commands/dbupdate.py +++ b/mediagoblin/gmg_commands/dbupdate.py @@ -117,9 +117,9 @@ def run_foundations(db, global_config): foundations = import_component( f'{plugin}.models:FOUNDATIONS') all_foundations.append((plugin, foundations)) - except ImportError as exc: + except ImportError: continue - except AttributeError as exc: + except AttributeError: continue for name, foundations in all_foundations: -- cgit v1.2.3