Skip to content

Commit

Permalink
fix:add error code 1002
Browse files Browse the repository at this point in the history
  • Loading branch information
张白驹 committed Nov 18, 2022
1 parent 933c6d3 commit 2c8663c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "synology_drive_api"
version = "1.0.8"
version = "1.0.9"
description = "synology drive api python wrapper"
authors = ["zbjdonald <[email protected]>"]
license = "MIT"
Expand Down
4 changes: 2 additions & 2 deletions synology_drive_api/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,8 @@ def _request(self, method: str, endpoint: str, **kwargs):
except SynologyException as e:
# retry
# 105: permission denied by anonymous
# 1003: update file information failed
if e.code in (105, 1003):
# 1003 1002: update file information failed
if e.code in (105, 1003, 1002):
sleep(1)
if retry == self.max_retries - 1:
raise e
Expand Down

0 comments on commit 2c8663c

Please sign in to comment.