diff --git a/onadata/libs/utils/viewer_tools.py b/onadata/libs/utils/viewer_tools.py index faf55bd3f..8ba9076e6 100644 --- a/onadata/libs/utils/viewer_tools.py +++ b/onadata/libs/utils/viewer_tools.py @@ -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}' )