correct behavior when Device Busy error occurs

This commit is contained in:
HappyZ 2018-02-14 11:57:04 -06:00
parent 59f4688d8d
commit d06eb344e9
1 changed files with 5 additions and 2 deletions

View File

@ -248,8 +248,11 @@ def wrapper(args):
except KeyboardInterrupt:
break
except Exception as e:
print(str(e))
time.sleep(5)
err = str(e)
print(err)
if 'Busy' in err:
break
time.sleep(10)
counter += 1