mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-28 05:32:51 +01:00
Made sure to handle the case where the driver object has no irc or its irc is None (like a Scheduler driver or something).
This commit is contained in:
parent
c65dfd718e
commit
17d6c1b93e
@ -96,7 +96,9 @@ def run():
|
||||
for name in _deadDrivers:
|
||||
try:
|
||||
driver = _drivers[name]
|
||||
driver.irc.driver = None
|
||||
if hasattr(driver, 'irc') and driver.irc is not None:
|
||||
# The Schedule driver has no irc object, or it's None.
|
||||
driver.irc.driver = None
|
||||
driver.irc = None
|
||||
del _drivers[name]
|
||||
except KeyError:
|
||||
|
Loading…
Reference in New Issue
Block a user