Commit f969496b authored by David Johnson's avatar David Johnson

Fix poorly-worded exception message.

parent 69dc78bc
Pipeline #3031 passed with stages
in 15 seconds
......@@ -225,7 +225,8 @@ class Engine(object):
elif not resource in [ "action","match" ]:
raise Exception("unknown resource type %s" % (str(resource),))
else:
raise Exception("unknown action type %s" % (str(action),))
raise Exception("unknown %s type %s"
% (str(resource),str(action)))
@staticmethod
def _db_factory(resource,action,**kwargs):
......@@ -238,7 +239,8 @@ class Engine(object):
elif not resource in [ "action","match" ]:
raise Exception("unknown resource type %s" % (str(resource),))
else:
raise Exception("unknown action type %s" % (str(action),))
raise Exception("unknown %s type %s"
% (str(resource),str(action)))
def load(self,force=False,ensure=True):
if self._loaded and not force:
......
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