mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2026-05-13 10:52:12 -04:00
Fixed some ruff warnings: requests without timeout and naming not complying with PEP
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user