From f9aaf65d44d6c2d7e8310289a079d6e1bb1ff1b3 Mon Sep 17 00:00:00 2001 From: Hugo Posnic Date: Wed, 21 Dec 2016 18:34:34 +0100 Subject: [PATCH] Remove unused vars in excepts blocks --- src/manjaro_hello.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/manjaro_hello.py b/src/manjaro_hello.py index 1cbc92f..c6605f4 100644 --- a/src/manjaro_hello.py +++ b/src/manjaro_hello.py @@ -201,7 +201,7 @@ class ManjaroHello(): try: with open(filename, "r") as f: return f.read() - except OSError as e: + except OSError: return _("Can't load page.") # Handlers @@ -281,7 +281,7 @@ def read_json(path): try: with open(path, "r") as f: return json.load(f) - except OSError as e: + except OSError: return None