diff --git a/src/drivers.py b/src/drivers.py index 2c89dd49b..a16b28d29 100644 --- a/src/drivers.py +++ b/src/drivers.py @@ -191,6 +191,9 @@ def newDriver(irc, moduleName=None): import twistedDrivers moduleName = 'supybot.twistedDrivers' except ImportError: + # We formerly used 'del' here, but 2.4 fixes the bug that we added + # the 'del' for, so we need to make sure we don't complain if the + # module is cleaned up already. sys.modules.pop('supybot.twistedDrivers', None) moduleName = 'supybot.socketDrivers' elif not moduleName.startswith('supybot.'):