diff options
author | Rodney Ewing <ewing.rj@gmail.com> | 2013-09-02 12:09:55 -0700 |
---|---|---|
committer | Rodney Ewing <ewing.rj@gmail.com> | 2013-09-02 12:09:55 -0700 |
commit | 6375cf735c3cc5b0a2b761545d546106e1de3b2d (patch) | |
tree | f4bbe1d1db01a6eb6f7bfe15a71eace7b2afdf7c | |
parent | dd57c6c5e51a62875542446e0432f850f0239ef8 (diff) | |
download | mediagoblin-6375cf735c3cc5b0a2b761545d546106e1de3b2d.tar.lz mediagoblin-6375cf735c3cc5b0a2b761545d546106e1de3b2d.tar.xz mediagoblin-6375cf735c3cc5b0a2b761545d546106e1de3b2d.zip |
should use public_store.file_exists to check if the file copied correctly
-rw-r--r-- | mediagoblin/processing/__init__.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mediagoblin/processing/__init__.py b/mediagoblin/processing/__init__.py index 361a9736..bdbe0441 100644 --- a/mediagoblin/processing/__init__.py +++ b/mediagoblin/processing/__init__.py @@ -376,8 +376,7 @@ def store_public(entry, keyname, local_file, target_name=None, raise PublicStoreFail(keyname=keyname) # raise an error if the file failed to copy - copied_filepath = mgg.public_store.get_local_path(target_filepath) - if not os.path.exists(copied_filepath): + if not mgg.public_store.file_exists(target_filepath): raise PublicStoreFail(keyname=keyname) entry.media_files[keyname] = target_filepath |