We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ead53a commit e9e657fCopy full SHA for e9e657f
1 file changed
bna/http.py
@@ -119,7 +119,9 @@ def restore(serial: str, restore_code: str) -> str:
119
if len(restore_code) != 10:
120
raise ValueError(f"invalid restore code (should be 10 characters): {restore_code}")
121
122
- client = APIClient()
+ # Region is always the first two chars of a restore code
123
+ region = serial[:2]
124
+ client = APIClient(region=region)
125
challenge = client.initiate_paper_restore(serial)
126
127
code = restore_code_to_bytes(restore_code)
0 commit comments