Commit 8f537ccd authored by John (J5) Palmieri's avatar John (J5) Palmieri

add an exception type to the try/except block

* we should always specify what exception types we are expecting
parent f140a8eb
......@@ -57,7 +57,7 @@ class ActionGroup(Gtk.ActionGroup):
"""
try:
iter(entries)
except:
except (TypeError):
raise TypeError('entries must be iterable')
def _process_action(name, stock_id=None, label=None, accelerator=None, tooltip=None, callback=None):
......@@ -102,7 +102,7 @@ class ActionGroup(Gtk.ActionGroup):
try:
iter(entries)
except:
except (TypeError):
raise TypeError('entries must be iterable')
def _process_action(name, stock_id=None, label=None, accelerator=None, tooltip=None, callback=None, is_active=False):
......@@ -148,7 +148,7 @@ class ActionGroup(Gtk.ActionGroup):
"""
try:
iter(entries)
except:
except (TypeError):
raise TypeError('entries must be iterable')
first_action = None
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment