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:
Jeremy Fincher 2004-02-12 06:50:26 +00:00
parent c65dfd718e
commit 17d6c1b93e

View File

@ -96,7 +96,9 @@ def run():
for name in _deadDrivers: for name in _deadDrivers:
try: try:
driver = _drivers[name] 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 driver.irc = None
del _drivers[name] del _drivers[name]
except KeyError: except KeyError: