From 5991f295be31a70b83e541a477b49897fb8aa834 Mon Sep 17 00:00:00 2001 From: Frisk Date: Sat, 26 Oct 2019 11:16:26 +0200 Subject: [PATCH] Fixed potential issue when the request for comment content errors out --- rcgcdw.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rcgcdw.py b/rcgcdw.py index 36bb734..dfd3046 100644 --- a/rcgcdw.py +++ b/rcgcdw.py @@ -131,7 +131,7 @@ def pull_comment(comment_id): logger.debug("Got the following comment from the API: {}".format(comment)) except MWError: pass - except TypeError: + except (TypeError, AttributeError): logger.exception("Could not resolve the comment text.") except KeyError: logger.exception("CurseProfile extension API did not respond with a valid comment content.")