Attempt to work around #40
This commit is contained in:
parent
235fa37252
commit
5e8506cc12
@ -83,7 +83,8 @@
|
||||
"address_external": "https://photos.domain.com",
|
||||
"username": "",
|
||||
"password": "",
|
||||
"album": ""
|
||||
"album": "",
|
||||
"timeout": 15.0
|
||||
}
|
||||
},
|
||||
"caption": {
|
||||
|
@ -118,7 +118,7 @@ async def authorize(custom_session: Union[ClientSession, None] = None) -> str:
|
||||
|
||||
unauthorized_client = Client(
|
||||
base_url=sync.config_get("address", "posting", "api"),
|
||||
timeout=5.0,
|
||||
timeout=sync.config_get("timeout", "posting", "api"),
|
||||
verify_ssl=True,
|
||||
raise_on_unexpected_status=True,
|
||||
follow_redirects=False,
|
||||
@ -142,7 +142,7 @@ if not isinstance(login_token, Token):
|
||||
|
||||
client = AuthenticatedClient(
|
||||
base_url=sync.config_get("address", "posting", "api"),
|
||||
timeout=5.0,
|
||||
timeout=sync.config_get("timeout", "posting", "api"),
|
||||
verify_ssl=True,
|
||||
raise_on_unexpected_status=True,
|
||||
token=login_token.access_token,
|
||||
|
Reference in New Issue
Block a user