mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2025-05-14 22:13:02 +00:00
Fixed some ruff warnings: requests without timeout and naming not complying with PEP
This commit is contained in:
parent
bf18dcbcf9
commit
1c0fb597fb
7 changed files with 25 additions and 31 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue