Number look up fix

andrejusk/bday
Alistair MacDonald 2018-08-31 19:54:40 +01:00 committed by GitHub
parent dfc23b2ee5
commit c87360cda7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -496,8 +496,7 @@ def getmynumber():
responsedata = ussd("*#100#", 8000).split(",")
if (len(responsedata)>=2):
num = responsedata[1].strip().strip("\"")
if num.isdigit()>0:
return num
return num
else:
return ""