Fixed spurious exception atexit.

This commit is contained in:
Jeremy Fincher 2003-03-31 09:26:51 +00:00
parent c700f3c6e5
commit aa9c867b14

View File

@ -287,7 +287,10 @@ class UsersDictionary(object):
else: else:
name = s name = s
self.resetCache(name) self.resetCache(name)
del self.dict[name] try:
del self.dict[name]
except KeyError:
pass
def getUserName(self, s): def getUserName(self, s):
assert ircutils.isUserHostmask(s), 'string must be a hostmask' assert ircutils.isUserHostmask(s), 'string must be a hostmask'