Fixed error on dropbox replication
This commit is contained in:
@@ -46,7 +46,8 @@ class DropboxService(StorageServiceInterface):
|
||||
try:
|
||||
dbx = dropbox.Dropbox(settings.DROPBOX_OAUTH2_ACCESS_TOKEN)
|
||||
dbx.files_upload(file, settings.DROPBOX_IMAGE_FOLDER + filename)
|
||||
except:
|
||||
except Exception as ex:
|
||||
print(ex)
|
||||
return False
|
||||
return True
|
||||
|
||||
|
||||
Reference in New Issue
Block a user