Fixed some ruff warnings: requests without timeout and naming not complying with PEP

This commit is contained in:
Vincent Emonet 2023-07-09 12:38:03 +02:00
parent bf18dcbcf9
commit 1c0fb597fb
7 changed files with 25 additions and 31 deletions

View file

@ -7,6 +7,7 @@ response = requests.post(
'q': 'Hello World!',
'source': 'en',
'target': 'en'
}
},
timeout=60
)
# if server unavailable then requests with raise exception and healthcheck will fail