Fixed potential issue when the request for comment content errors out

This commit is contained in:
Frisk 2019-10-26 11:16:26 +02:00
parent 3fcb098c40
commit 5991f295be
No known key found for this signature in database
GPG key ID: 0E9A7D3C0A01586C

View file

@ -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.")