mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 14:59:34 +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,6 +96,8 @@ def run():
|
|||||||
for name in _deadDrivers:
|
for name in _deadDrivers:
|
||||||
try:
|
try:
|
||||||
driver = _drivers[name]
|
driver = _drivers[name]
|
||||||
|
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.driver = None
|
||||||
driver.irc = None
|
driver.irc = None
|
||||||
del _drivers[name]
|
del _drivers[name]
|
||||||
|
Loading…
Reference in New Issue
Block a user