Skip to content

Commit 2355242

Browse files
committed
chore: check notify_admin_url
1 parent 970e90e commit 2355242

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/notify_admin/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ async def notify_admin(request: Request):
1111
body = await request.json()
1212
logger.info(str(body))
1313

14+
if not settings.notify_admin_url:
15+
logger.warning("no notify_admin_url, ignore")
16+
return
17+
1418
try:
1519
async with ClientSession() as session:
1620
async with session.post(

0 commit comments

Comments
 (0)