diff options
author | Christopher Allan Webber <cwebber@dustycloud.org> | 2015-02-18 15:22:52 -0600 |
---|---|---|
committer | Christopher Allan Webber <cwebber@dustycloud.org> | 2015-02-18 15:22:52 -0600 |
commit | dbc383d4834daea1de2c59aa95c06198a3941d6e (patch) | |
tree | 548186c18dbfa426a5c0a21fb70e57ca165da1c5 /mediagoblin/processing/__init__.py | |
parent | 941b9abbb03dbc6fb91975a5f4bf5ea6b4997d17 (diff) | |
parent | eade529e189ee688ba125c7a7e26e8cb8ed6aedd (diff) | |
download | mediagoblin-dbc383d4834daea1de2c59aa95c06198a3941d6e.tar.lz mediagoblin-dbc383d4834daea1de2c59aa95c06198a3941d6e.tar.xz mediagoblin-dbc383d4834daea1de2c59aa95c06198a3941d6e.zip |
Merge remote-tracking branch 'refs/remotes/breton/new_gst10'
Diffstat (limited to 'mediagoblin/processing/__init__.py')
-rw-r--r-- | mediagoblin/processing/__init__.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/mediagoblin/processing/__init__.py b/mediagoblin/processing/__init__.py index 5a88ddea..aa8f1447 100644 --- a/mediagoblin/processing/__init__.py +++ b/mediagoblin/processing/__init__.py @@ -309,8 +309,8 @@ def mark_entry_failed(entry_id, exc): store extra information that can be useful for users telling them why their media failed to process. - Args: - - entry_id: The id of the media entry + :param entry_id: The id of the media entry + :param exc: An instance of BaseProcessingFail """ # Was this a BaseProcessingFail? In other words, was this a @@ -378,12 +378,11 @@ def store_public(entry, keyname, local_file, target_name=None, entry.media_files[keyname], target_filepath) if delete_if_exists: mgg.public_store.delete_file(entry.media_files[keyname]) - try: mgg.public_store.copy_local_to_storage(local_file, target_filepath) - except: + except Exception as e: + _log.error(u'Exception happened: {0}'.format(e)) raise PublicStoreFail(keyname=keyname) - # raise an error if the file failed to copy if not mgg.public_store.file_exists(target_filepath): raise PublicStoreFail(keyname=keyname) |