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,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]