1
0
forked from ScoDoc/ScoDoc

Exception si erreur connexion vers assistance

This commit is contained in:
Emmanuel Viennet 2022-02-28 09:22:17 +01:00
parent 00fa91e598
commit 68680e89d3

View File

@ -186,6 +186,7 @@ def _send_db(ano_db_name):
log("uploading anonymized dump...") log("uploading anonymized dump...")
files = {"file": (ano_db_name + ".dump", dump)} files = {"file": (ano_db_name + ".dump", dump)}
try:
r = requests.post( r = requests.post(
scu.SCO_DUMP_UP_URL, scu.SCO_DUMP_UP_URL,
files=files, files=files,
@ -198,6 +199,15 @@ def _send_db(ano_db_name):
"sco_fullversion": scu.get_scodoc_version(), "sco_fullversion": scu.get_scodoc_version(),
}, },
) )
except requests.exceptions.ConnectionError as exc:
raise ScoValueError(
"""
Impossible de joindre le serveur d'assistance (scodoc.org).
Veuillez contacter le service informatique de votre établissement pour
corriger la configuration de ScoDoc. Dans la plupart des cas, il
s'agit d'un proxy mal configuré.
"""
) from exc
return r return r