This commit is contained in:
wenxianping
2019-01-17 15:33:10 +08:00
parent 33322cc472
commit 8458017498
5 changed files with 5 additions and 5 deletions

View File

@@ -29,7 +29,7 @@ def getPassCodeNewOrderAndLogin(session, imgType):
try:
with open(img_path, 'wb', encoding="utf-8") as img:
img.write(result)
except TypeError:
except Exception:
with open(img_path, 'wb') as img:
img.write(result)
return result