mirror of
https://gitlab.com/chicken-riders/RcGcDw.git
synced 2025-02-23 00:24:09 +00:00
Fixed potential issue when the request for comment content errors out
This commit is contained in:
parent
3fcb098c40
commit
5991f295be
|
@ -131,7 +131,7 @@ def pull_comment(comment_id):
|
||||||
logger.debug("Got the following comment from the API: {}".format(comment))
|
logger.debug("Got the following comment from the API: {}".format(comment))
|
||||||
except MWError:
|
except MWError:
|
||||||
pass
|
pass
|
||||||
except TypeError:
|
except (TypeError, AttributeError):
|
||||||
logger.exception("Could not resolve the comment text.")
|
logger.exception("Could not resolve the comment text.")
|
||||||
except KeyError:
|
except KeyError:
|
||||||
logger.exception("CurseProfile extension API did not respond with a valid comment content.")
|
logger.exception("CurseProfile extension API did not respond with a valid comment content.")
|
||||||
|
|
Loading…
Reference in a new issue