Remove unused vars in excepts blocks
parent
65a1e9296e
commit
f9aaf65d44
|
@ -201,7 +201,7 @@ class ManjaroHello():
|
||||||
try:
|
try:
|
||||||
with open(filename, "r") as f:
|
with open(filename, "r") as f:
|
||||||
return f.read()
|
return f.read()
|
||||||
except OSError as e:
|
except OSError:
|
||||||
return _("Can't load page.")
|
return _("Can't load page.")
|
||||||
|
|
||||||
# Handlers
|
# Handlers
|
||||||
|
@ -281,7 +281,7 @@ def read_json(path):
|
||||||
try:
|
try:
|
||||||
with open(path, "r") as f:
|
with open(path, "r") as f:
|
||||||
return json.load(f)
|
return json.load(f)
|
||||||
except OSError as e:
|
except OSError:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue