Retrive project ID from the correct location

This commit is contained in:
jeltz 2021-03-16 09:58:23 +01:00
parent c398980cdb
commit aa138be80b

2
bot.py
View file

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