Fixed exception in dropboxservice when image being read is not available in dropbox

This commit is contained in:
Martin Schett 2021-01-19 17:59:29 +01:00
parent a4688be61b
commit 4d7f774c16

View File

@ -57,7 +57,7 @@ class DropboxService(StorageServiceInterface):
:param filename: filename
:return: bytes representation of the file or None on error
"""
file_bytes: bytes
file_bytes: bytes = None
try:
dbx = dropbox.Dropbox(settings.DROPBOX_OAUTH2_ACCESS_TOKEN)
f: requests.models.Response