Author: leosimons
Date: Fri Jul 8 06:34:41 2005
New Revision: 209769
URL: http://svn.apache.org/viewcvs?rev=209769&view=rev
Log:
Fix bug in irc plugin -- there is no builtin 'Error', it is called 'Exception'
Modified:
gump/branches/Gump3/pygump/python/gump/plugins/irc.py
Modified: gump/branches/Gump3/pygump/python/gump/plugins/irc.py
URL: http://svn.apache.org/viewcvs/gump/branches/Gump3/pygump/python/gump/plugins/irc.py?rev=209769&r1=209768&r2=209769&view=diff
==============================================================================
--- gump/branches/Gump3/pygump/python/gump/plugins/irc.py (original)
+++ gump/branches/Gump3/pygump/python/gump/plugins/irc.py Fri Jul 8 06:34:41 2005
@@ -37,12 +37,12 @@
# Extract nickname@ from front...
s = string.split(data,'@',1)
if not 2 == len(s):
- raise Error, 'Unable to extract nickname for %s from %s' % (CONFIG_FORMAT, data)
+ raise Exception, 'Unable to extract nickname for %s from %s' % (CONFIG_FORMAT, data)
nickname=s[0]
s = string.split(s[1], '/', 1)
if not 2 == len(s):
- raise Error, 'Unable to extract channel for %s from %s' % (CONFIG_FORMAT, data)
+ raise Exception, 'Unable to extract channel for %s from %s' % (CONFIG_FORMAT, data)
channel=s[1]
s = string.split(s[0], ":", 1)
@@ -51,7 +51,7 @@
try:
port = int(s[1])
except ValueError:
- raise Error, 'Unable to extract port for %s from %s using %s' % (CONFIG_FORMAT,
data, s[1])
+ raise Exception, 'Unable to extract port for %s from %s using %s' % (CONFIG_FORMAT,
data, s[1])
else:
port = DEFAULT_IRC_PORT
|