aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_web
diff options
context:
space:
mode:
Diffstat (limited to 'python/fatcat_web')
-rw-r--r--python/fatcat_web/auth.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/python/fatcat_web/auth.py b/python/fatcat_web/auth.py
index 2b3f5871..71afc0fb 100644
--- a/python/fatcat_web/auth.py
+++ b/python/fatcat_web/auth.py
@@ -119,11 +119,11 @@ def handle_ia_xauth(email: str, password: str) -> AnyResponse:
)
)
except Exception:
- app.log.warning("IA XAuth fail: {}".format(resp.content))
+ app.log.warning("IA XAuth fail: {}".format(resp.text))
return render_template("auth_ia_login.html", email=email), resp.status_code
elif resp.status_code != 200:
flash("Internet Archive login failed (internal error?)")
- app.log.warning("IA XAuth fail: {}".format(resp.content))
+ app.log.warning("IA XAuth fail: {}".format(resp.text))
return render_template("auth_ia_login.html", email=email), resp.status_code
# Successful login; now fetch info...
@@ -139,7 +139,7 @@ def handle_ia_xauth(email: str, password: str) -> AnyResponse:
)
if resp.status_code != 200:
flash("Internet Archive login failed (internal error?)")
- app.log.warning("IA XAuth fail: {}".format(resp.content))
+ app.log.warning("IA XAuth fail: {}".format(resp.text))
return render_template("auth_ia_login.html", email=email), resp.status_code
ia_info = resp.json()["values"]