mirror of https://github.com/Mikaela/Limnoria.git
Woohoo, fixed the bug with register in tests!
This commit is contained in:
parent
74300bb148
commit
1a62fed0b6
|
@ -520,9 +520,11 @@ class UsersDictionary(utils.IterableMap):
|
|||
|
||||
def reload(self):
|
||||
"""Reloads the database from its file."""
|
||||
self.nextId = 0
|
||||
self.users.clear()
|
||||
self._nameCache.clear()
|
||||
self._hostmaskCache.clear()
|
||||
if self.filename is not None:
|
||||
self.nextId = 0
|
||||
self.users.clear()
|
||||
try:
|
||||
self.open(self.filename)
|
||||
except EnvironmentError, e:
|
||||
|
|
Loading…
Reference in New Issue