mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
Fix some bugs
This commit is contained in:
parent
8bc9f84cdb
commit
3fb9905166
1 changed files with 4 additions and 1 deletions
|
@ -409,8 +409,11 @@ def hooks_github():
|
||||||
except Exception:
|
except Exception:
|
||||||
abort(400)
|
abort(400)
|
||||||
return
|
return
|
||||||
|
if j is None:
|
||||||
|
abort(400)
|
||||||
|
return
|
||||||
# TODO: add secret check
|
# TODO: add secret check
|
||||||
message = f"🐙 {j['size']} aggiornamenti a Royalnet ricevuti:\n"
|
message = f"🐙 Nuovi aggiornamenti a Royalnet:\n"
|
||||||
for commit in j.get("commits", []):
|
for commit in j.get("commits", []):
|
||||||
message += f"<b>{commit['message']}</b> di {commit['author']}\n"
|
message += f"<b>{commit['message']}</b> di {commit['author']}\n"
|
||||||
telegram_bot.send_message(config["Telegram"]["main_group"],
|
telegram_bot.send_message(config["Telegram"]["main_group"],
|
||||||
|
|
Loading…
Reference in a new issue