diff options
Diffstat (limited to 'mediagoblin/gmg_commands')
-rw-r--r-- | mediagoblin/gmg_commands/addmedia.py | 3 | ||||
-rw-r--r-- | mediagoblin/gmg_commands/assetlink.py | 2 | ||||
-rw-r--r-- | mediagoblin/gmg_commands/dbupdate.py | 4 | ||||
-rw-r--r-- | mediagoblin/gmg_commands/reprocess.py | 2 |
4 files changed, 3 insertions, 8 deletions
diff --git a/mediagoblin/gmg_commands/addmedia.py b/mediagoblin/gmg_commands/addmedia.py index f8bd1715..57c24232 100644 --- a/mediagoblin/gmg_commands/addmedia.py +++ b/mediagoblin/gmg_commands/addmedia.py @@ -20,8 +20,7 @@ import os from mediagoblin.db.models import LocalUser from mediagoblin.gmg_commands import util as commands_util from mediagoblin.submit.lib import ( - submit_media, get_upload_file_limits, - FileUploadLimit, UserUploadLimit, UserPastUploadLimit) + submit_media, FileUploadLimit, UserUploadLimit, UserPastUploadLimit) from mediagoblin import mg_globals diff --git a/mediagoblin/gmg_commands/assetlink.py b/mediagoblin/gmg_commands/assetlink.py index 2f54808e..8cba19f6 100644 --- a/mediagoblin/gmg_commands/assetlink.py +++ b/mediagoblin/gmg_commands/assetlink.py @@ -17,9 +17,7 @@ import os from mediagoblin import mg_globals -from mediagoblin.init import setup_global_and_app_config from mediagoblin.gmg_commands import util as commands_util -from mediagoblin.tools.theme import register_themes from mediagoblin.tools.translate import pass_to_ugettext as _ from mediagoblin.tools.common import simple_printer from mediagoblin.tools import pluginapi 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: diff --git a/mediagoblin/gmg_commands/reprocess.py b/mediagoblin/gmg_commands/reprocess.py index b2ed62fe..0c1b03e1 100644 --- a/mediagoblin/gmg_commands/reprocess.py +++ b/mediagoblin/gmg_commands/reprocess.py @@ -22,8 +22,6 @@ from mediagoblin import mg_globals from mediagoblin.db.models import MediaEntry from mediagoblin.gmg_commands import util as commands_util from mediagoblin.submit.lib import run_process_media -from mediagoblin.tools.translate import lazy_pass_to_ugettext as _ -from mediagoblin.tools.pluginapi import hook_handle from mediagoblin.processing import ( ProcessorDoesNotExist, ProcessorNotEligible, get_entry_and_processing_manager, get_processing_manager_for_type, |