Skip to content

Commit

Permalink
Minor: Code optimizations (Timeout catches ConnectTimeout & ReadTimeout)
Browse files Browse the repository at this point in the history
  • Loading branch information
rfc-st committed Sep 13, 2024
1 parent aa32192 commit d060a34
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 14 deletions.
2 changes: 0 additions & 2 deletions humble.py
Original file line number Diff line number Diff line change
Expand Up @@ -1446,12 +1446,10 @@ def custom_help_formatter(prog):
exception_d = {
requests.exceptions.ChunkedEncodingError: '[e_chunk]',
requests.exceptions.ConnectionError: '[e_connection]',
requests.exceptions.ConnectTimeout: '[e_ctimeout]',
requests.exceptions.ContentDecodingError: '[e_decoding]',
requests.exceptions.InvalidSchema: '[e_ischema]',
requests.exceptions.InvalidURL: '[e_url]',
requests.exceptions.MissingSchema: '[e_mschema]',
requests.exceptions.ReadTimeout: '[e_rtimeout]',
requests.exceptions.SSLError: None,
requests.exceptions.Timeout: '[e_timeout]',
requests.exceptions.TooManyRedirects: '[e_redirect]',
Expand Down
6 changes: 0 additions & 6 deletions l10n/details.txt
Original file line number Diff line number Diff line change
Expand Up @@ -719,15 +719,9 @@ HTTP Response Headers
[e_connection]
Error: The request timed out while trying to connect to the remote server. Check URL and try again.

[e_ctimeout]
Error: The request timed out. Wait a while and try again.

[e_redirect]
Error: Too many redirects.

[e_rtimeout]
Error: The server did not send any data in the allotted amount of time.

[e_timeout]
Error: The request timed out.

Expand Down
6 changes: 0 additions & 6 deletions l10n/details_es.txt
Original file line number Diff line number Diff line change
Expand Up @@ -719,15 +719,9 @@ Cabeceras de respuesta HTTP
[e_connection]
Error: La solicitud ha expirado al intentar conectarse al servidor; revisa la URL y prueba de nuevo.

[e_ctimeout]
Error: La solicitud ha caducado; espera unos minutos y prueba de nuevo.

[e_redirect]
Error: Demasiadas redirecciones.

[e_rtimeout]
Error: El servidor no ha enviado ningún dato en el tiempo previsto.

[e_timeout]
Error: Se ha superado el tiempo de espera; espera unos minutos y prueba de nuevo.

Expand Down

0 comments on commit d060a34

Please sign in to comment.