Skip to content

Commit

Permalink
gkeys/actionbase.py: Add an exception to the raise statements
Browse files Browse the repository at this point in the history
There were no active exceptions at this point which in itself caused an exception.
  • Loading branch information
dol-sen committed Dec 13, 2015
1 parent 0ea1407 commit d30a4c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gkeys/gkeys/actionbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ def seedhandler(self):
def _set_category(self, cat):
keyring = self.config.get_key('keyring')
if not keyring:
raise
raise Exception("No keyring set.")
if not cat:
raise
raise Exception("No category set.")
self.category = cat
catdir = os.path.join(keyring, cat)
self.logger.debug(_unicode("ACTIONS: _set_category; catdir = %s") % catdir)
Expand Down

0 comments on commit d30a4c0

Please sign in to comment.