Skip to content

Commit

Permalink
Fix indentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rick Bernotas authored and romainr committed Mar 9, 2021
1 parent 04b1f3b commit a71ad4e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apps/filebrowser/src/filebrowser/views.py
Expand Up @@ -921,10 +921,10 @@ def _read_gzip(fhandle, path, offset, length, stats):
if offset and offset != 0:
raise PopupException(_("Offsets are not supported with Gzip compression."))
try:
if sys.version_info[0] > 2:
contents = decompress_gzip(fhandle.read())
else:
contents = GzipFile('', 'r', 0, string_io(fhandle.read())).read(length)
if sys.version_info[0] > 2:
contents = decompress_gzip(fhandle.read())
else:
contents = GzipFile('', 'r', 0, string_io(fhandle.read())).read(length)
except Exception as e:
logging.exception('Could not decompress file at "%s": %s' % (path, e))
raise PopupException(_("Failed to decompress file."))
Expand Down

0 comments on commit a71ad4e

Please sign in to comment.