[dropbox] ignore ApiError exception in url()
@@ -127,8 +127,11 @@ class DropBoxStorage(Storage):
return metadata.client_modified
def url(self, name):
+ try:
media = self.client.files_get_temporary_link(self._full_path(name))
return media.link
+ except ApiError:
+ return None
def _open(self, name, mode='rb'):
remote_file = DropBoxFile(self._full_path(name), self)
