I using a 'for loop' to record the IMEI number from multiple files in an array.
When, but when no IMEI is detected the for loop stops indicating AttributeError:rint.
result = getattr(asarray(obj), method)(*args, **kwds)
AttributeError: rint
I have used this method:
for IMEI in file():
try:
detect the IMEI from the files()
Append them to the array()
exception AttributeError:
print 'File name'
pass
What I would like to do is to skip the error if the IMEI is not detected in the file and then continue with the loop looking for IMEI in other files.
IMEI refers to 16Digit AlphaNumeric code. I use it as a 'string'.
There are 3200 '.dat' files which I processed for finding such a Alpha Numeric text in each file. Each dat file has some HEX data in it.
IMEIandfileis in your question, as it is now, your answer to the question makes little sense and makes the question less useful to others.