Comment 2 for bug 244022

Revision history for this message
netmask (netmask) wrote :

Revision 824 in trunk got a fix which makes Smart not crash when not using pycurl.

=== modified file 'smart/commands/channel.py'
--- smart/commands/channel.py 2008-07-05 20:02:42 +0000
+++ smart/commands/channel.py 2008-07-10 22:34:30 +0000
@@ -193,7 +193,7 @@
             for arg in opts.add:
                 if "=" not in arg:
                     raise Error, _("Argument '%s' has no '='") % arg
- key, value = arg.split("=")
+ key, value = arg.split("=", 1)
                 channel[key.strip()] = value.strip()
             channel = parseChannelData(channel)
             channel["alias"] = alias

I will check again later for a proper fix when pycurl is installed.