mirror of
https://github.com/certbot/certbot.git
synced 2026-07-31 18:25:24 +02:00
snap_config: set a timeout when talking to snapd (#9218)
This commit is contained in:
@@ -54,7 +54,8 @@ def prepare_env(cli_args: List[str]) -> List[str]:
|
||||
session.mount('http://snapd/', _SnapdAdapter())
|
||||
|
||||
try:
|
||||
response = session.get('http://snapd/v2/connections?snap=certbot&interface=content')
|
||||
response = session.get('http://snapd/v2/connections?snap=certbot&interface=content',
|
||||
timeout=30.0)
|
||||
response.raise_for_status()
|
||||
except RequestException as e:
|
||||
if isinstance(e, HTTPError) and e.response.status_code == 404:
|
||||
|
||||
Reference in New Issue
Block a user