mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +01:00
Don't make those error logs if we're testing.
This commit is contained in:
parent
0a2d7146a4
commit
887e92a12b
@ -119,7 +119,7 @@ class Schedule(drivers.IrcDriver):
|
|||||||
removePeriodicEvent = removeEvent
|
removePeriodicEvent = removeEvent
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
if len(drivers._drivers) == 1:
|
if len(drivers._drivers) == 1 and not world.testing:
|
||||||
log.error('Schedule is the only remaining driver, '
|
log.error('Schedule is the only remaining driver, '
|
||||||
'why do we continue to live?')
|
'why do we continue to live?')
|
||||||
time.sleep(1) # We're the only driver; let's pause to think.
|
time.sleep(1) # We're the only driver; let's pause to think.
|
||||||
|
Loading…
Reference in New Issue
Block a user