Fixed error on dropbox replication

This commit is contained in:
Martin Schett
2021-01-19 18:46:35 +01:00
parent 47335e1aa4
commit 94f7f2182e
2 changed files with 4 additions and 1 deletions
+2 -1
View File
@@ -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