mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-11 20:59:42 +01:00
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):
|
def reload(self):
|
||||||
"""Reloads the database from its file."""
|
"""Reloads the database from its file."""
|
||||||
|
self.nextId = 0
|
||||||
|
self.users.clear()
|
||||||
|
self._nameCache.clear()
|
||||||
|
self._hostmaskCache.clear()
|
||||||
if self.filename is not None:
|
if self.filename is not None:
|
||||||
self.nextId = 0
|
|
||||||
self.users.clear()
|
|
||||||
try:
|
try:
|
||||||
self.open(self.filename)
|
self.open(self.filename)
|
||||||
except EnvironmentError, e:
|
except EnvironmentError, e:
|
||||||
|
Loading…
Reference in New Issue
Block a user