fix crash on empty args

This commit is contained in:
urlbot
2014-10-29 13:50:01 +01:00
parent 65681bcc61
commit 3a8fecd8f9

View File

@@ -23,7 +23,7 @@ def get_reply_data(data, field=0):
if 0 == field:
return f[0].strip('<>')
else:
if field > len(f):
if field >= len(f):
return None
return f[field]