UQComputingSociety / uqcsbot-slack

:mortar_board: UQCSbot: our friendly little Slack bot
https://slack.uqcs.org.au
MIT License
55 stars 44 forks source link

Whatsdue fix 050519 #474

Closed Guthers closed 5 years ago

Guthers commented 5 years ago

Fixes !whatsdue and !ecp. They broke because you now need to supply a user agent when making a request to the site.

I also added some more error handling to stop it from hanging as often.

Closes #473 and closes #472

jdcaperon commented 5 years ago

Jenkins is failing due to linting errors, please rectify :)

uqcsbot/utils/uq_course_utils.py:77:62: E252 missing whitespace around parameter equals
uqcsbot/utils/uq_course_utils.py:77:63: E252 missing whitespace around parameter equals
uqcsbot/utils/uq_course_utils.py:86:70: W291 trailing whitespace
uqcsbot/utils/uq_course_utils.py:87:80: W291 trailing whitespace