Merge pull request 'Retrive project ID from the correct location' (#1) from fix_project_id into master

Reviewed-on: Aurore/kanbot#1
This commit is contained in:
jeltz 2021-03-16 10:00:15 +01:00
commit 95cabfb36d

2
bot.py
View file

@ -76,7 +76,7 @@ async def format_events(config, src, dest):
logging.debug("Formatting message: %s", event)
try:
project = event["event_data"]["project_id"]
project = event["event_data"]["task"]["project_id"]
except KeyError:
logging.warning("Missing project ID: %s", event)
continue