diff --git a/webserver.py b/webserver.py index 77f59495..d9fc67fc 100644 --- a/webserver.py +++ b/webserver.py @@ -416,7 +416,7 @@ def hooks_github(): message = f"🐙 Nuovi aggiornamenti a Royalnet:\n" for commit in j.get("commits", []): if commit["distinct"]: - message += f'{commit["message"]} di {commit["author"]}\n' + message += f'{commit["message"]} di {commit["author"].get("username", "anonimo")}\n' telegram_bot.send_message(config["Telegram"]["main_group"], message, parse_mode="HTML", disable_web_page_preview=True, disable_notification=True) return "Done."