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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user