Fixed exception in dropboxservice when image being read is not available in dropbox
This commit is contained in:
parent
a4688be61b
commit
4d7f774c16
@ -57,7 +57,7 @@ class DropboxService(StorageServiceInterface):
|
|||||||
:param filename: filename
|
:param filename: filename
|
||||||
:return: bytes representation of the file or None on error
|
:return: bytes representation of the file or None on error
|
||||||
"""
|
"""
|
||||||
file_bytes: bytes
|
file_bytes: bytes = None
|
||||||
try:
|
try:
|
||||||
dbx = dropbox.Dropbox(settings.DROPBOX_OAUTH2_ACCESS_TOKEN)
|
dbx = dropbox.Dropbox(settings.DROPBOX_OAUTH2_ACCESS_TOKEN)
|
||||||
f: requests.models.Response
|
f: requests.models.Response
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user