Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Contribs] Fix parsing bug in errcode.py
Make sure parser doesn't choke on line with space at end.
  • Loading branch information
stefanha authored and Michael Brown committed May 20, 2008
1 parent f43a7e3 commit 711a59c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion contrib/errcode/gpxebot.py
Expand Up @@ -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] == ':':
Expand Down

0 comments on commit 711a59c

Please sign in to comment.