From 406a9ab374c99ee4ba0dd60ceb278ae02c12e368 Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Sun, 14 Jun 2020 12:02:15 -0300 Subject: [PATCH] Fixed gzip exception name. --- kiplot/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kiplot/__main__.py b/kiplot/__main__.py index dd67cd59..cc8042aa 100644 --- a/kiplot/__main__.py +++ b/kiplot/__main__.py @@ -96,7 +96,7 @@ def main(): # The Python way ... with gzip.open(plot_config) as cf_file: cfg = cr.read(cf_file) - except gzip.BadGzipFile: + except OSError: with open(plot_config) as cf_file: cfg = cr.read(cf_file)