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()
|
f = data.split()
|
||||||
|
|
||||||
if 0 == field:
|
if 0 == field:
|
||||||
|
if 1 > len(f):
|
||||||
|
return None
|
||||||
return f[0].strip('<>')
|
return f[0].strip('<>')
|
||||||
else:
|
else:
|
||||||
if field >= len(f):
|
if field >= len(f):
|
||||||
|
|||||||
Reference in New Issue
Block a user