commit:     d30a4c052be16bc01f82c2893ab26114f9ac54a5
Author:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 13 02:22:25 2015 +0000
Commit:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
CommitDate: Sun Dec 13 02:22:25 2015 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-keys.git/commit/?id=d30a4c05

gkeys/actionbase.py: Add an exception to the raise statements

There were no active exceptions at this point which in itself caused an 
exception.

 gkeys/gkeys/actionbase.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gkeys/gkeys/actionbase.py b/gkeys/gkeys/actionbase.py
index c53bfdb..67d3520 100644
--- a/gkeys/gkeys/actionbase.py
+++ b/gkeys/gkeys/actionbase.py
@@ -81,9 +81,9 @@ class ActionBase(object):
     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)

Reply via email to