Skip to content

Commit

Permalink
Merge pull request #901 from kobotoolbox/zip-export-failed
Browse files Browse the repository at this point in the history
Fix failing ZIP exports
  • Loading branch information
LMNTL committed Oct 18, 2023
2 parents ca44143 + 90b106f commit 72145d7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions onadata/libs/utils/viewer_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,10 +193,9 @@ def no_seeking(*a, **kw):
# The default, file-system storage won't allow changing the `seek`
# attribute, which is fine because seeking on local files works
# perfectly anyway
storage_class = get_storage_class()
if not issubclass(storage_class, FileSystemStorage):
if not isinstance(default_storage, FileSystemStorage):
logging.warning(
f'{storage_class} may not be a local storage class, but '
f'{default_storage.__class__} may not be a local storage class, but '
f'disabling seeking failed: {e}'
)

Expand Down

0 comments on commit 72145d7

Please sign in to comment.