1
0
mirror of http://aero2k.de/t/repos/urlbot-native.git synced 2017-09-06 15:25:38 +02:00

get_reply_data: fix crash for empty data

This commit is contained in:
urlbot
2014-11-14 09:15:00 +01:00
parent 691db08e50
commit 00febaf2cc

View File

@@ -22,6 +22,8 @@ def get_reply_data(data, field=0):
f = data.split()
if 0 == field:
if 1 > len(f):
return None
return f[0].strip('<>')
else:
if field >= len(f):