summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/errcode/gpxebot.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/contrib/errcode/gpxebot.py b/contrib/errcode/gpxebot.py
index 4fb2ce1e..f975942f 100755
--- a/contrib/errcode/gpxebot.py
+++ b/contrib/errcode/gpxebot.py
@@ -88,7 +88,10 @@ def parse(line):
who = None
args = []
while line and line[0] != ':' and line.find(' ') != -1:
- arg, line = line.split(None, 1)
+ fields = line.split(None, 1)
+ if len(fields) == 1:
+ fields.append(None)
+ arg, line = fields
args.append(arg)
if line:
if line[0] == ':':