From b5c99b1ce1131293cc15d95b732b924a6d231f84 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sat, 4 Aug 2012 15:57:51 +0200 Subject: [PATCH] Fix capability checks. --- src/ircdb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ircdb.py b/src/ircdb.py index a2b1495bd..c621b946d 100644 --- a/src/ircdb.py +++ b/src/ircdb.py @@ -153,7 +153,7 @@ class CapabilitySet(set): elif self.__parent.__contains__(_invert(capability)): return False else: - return False + raise KeyError def __repr__(self): return '%s([%s])' % (self.__class__.__name__,