aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas "Cakeisalie5" Touhey <thomas@touhey.fr>2018-10-28 01:05:57 +0200
committerThomas "Cakeisalie5" Touhey <thomas@touhey.fr>2018-10-28 01:05:57 +0200
commit4fdafd307659e1caca974975a4e62a08ca21837f (patch)
tree87c4019d699f92e2e8117ca7cf70c27f66201c18
parentfdb01348fccc751627e10adad6e6bab111683cde (diff)
Oops, removed debug.
-rwxr-xr-xsgdfi/_intranet.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/sgdfi/_intranet.py b/sgdfi/_intranet.py
index 8910868..1b63762 100755
--- a/sgdfi/_intranet.py
+++ b/sgdfi/_intranet.py
@@ -374,10 +374,7 @@ class AnonymousIntranetSession:
method = self.METHOD_FORM,
hint = 'sic')
- # Print the result.
-
- node = result.find(id = 'ctl00__upMainContent')
- print(node)
+ # Check the result.
espan = result.find(id = 'ctl00__erreur__lblErreur')
if espan is not None:
@@ -390,7 +387,9 @@ class AnonymousIntranetSession:
"les informations fournies"
if etx == noinfo:
- raise ValueError("no result")
+ raise ValueError("no result found")
+ else:
+ raise ValueError("unknown error: {repr(etx)}")
class IntranetSession(AnonymousIntranetSession):
""" Class for interacting with the intranet while logged in. """