aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bot/bot.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/bot.py b/bot/bot.py
index 63a15a8..95c659c 100644
--- a/bot/bot.py
+++ b/bot/bot.py
@@ -181,13 +181,13 @@ async def process(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None:
181 output.seek(0) 181 output.seek(0)
182 upload_to_s3(photo.fileId, output.read()) 182 upload_to_s3(photo.fileId, output.read())
183 183
184 await rebuild(update) 184 await rebuild(update, context)
185 185
186 except Exception: 186 except Exception:
187 await update.message.reply_markdown_v2(text="Error:\n```{}```".format(traceback.format_exc())) 187 await update.message.reply_markdown_v2(text="Error:\n```{}```".format(traceback.format_exc()))
188 188
189 189
190async def rebuild(update: Update) -> None: 190async def rebuild(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None:
191 write_json() 191 write_json()
192 response = httpx.post(cloudflare_pages_deploy_hook_url) 192 response = httpx.post(cloudflare_pages_deploy_hook_url)
193 if response.status_code == 200: 193 if response.status_code == 200:
Powered by cgit v1.2.3 (git 2.41.0)