Actually use the unexpected_content translation;

and handle the associated exception everywhere
This commit is contained in:
DevilXD committed 2022-08-24 12:18:00 +02:00
1 parent 091ed1422c
commit 53d14d3dd7
2 files changed
+13 -19

No files matched your search

+1 -1
View File
@@ -214,7 +214,7 @@ default_translation: Translation = {
},
"login": {
"unexpected_content": (
"Unexpected content type returned instead of JSON, usually due to being redirected. "
"Unexpected content type returned, usually due to being redirected. "
"Do you need to login for internet access?"
),
"incorrect_login_pass": "Incorrect username or password.",