summaryrefslogtreecommitdiffstats
path: root/grandlyon_cartads_cs/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'grandlyon_cartads_cs/models.py')
-rw-r--r--grandlyon_cartads_cs/models.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/grandlyon_cartads_cs/models.py b/grandlyon_cartads_cs/models.py
index a029318..34e24bd 100644
--- a/grandlyon_cartads_cs/models.py
+++ b/grandlyon_cartads_cs/models.py
@@ -89,3 +89,6 @@ class GLCartaDSCS(AbstractCartaDSCS):
}
)
resp.raise_for_status()
+ if resp.content:
+ # error messages are put in content, valid responses are empty.
+ raise Exception(resp.content)