Fixed gzip exception name.

This commit is contained in:
Salvador E. Tropea 2020-06-14 12:02:15 -03:00
parent 4101f69cd4
commit 406a9ab374
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ def main():
# The Python way ... # The Python way ...
with gzip.open(plot_config) as cf_file: with gzip.open(plot_config) as cf_file:
cfg = cr.read(cf_file) cfg = cr.read(cf_file)
except gzip.BadGzipFile: except OSError:
with open(plot_config) as cf_file: with open(plot_config) as cf_file:
cfg = cr.read(cf_file) cfg = cr.read(cf_file)