This commit is contained in:
@@ -11,7 +11,7 @@ async def handle_reaction(notification: dict[str, str | int]):
|
|||||||
try:
|
try:
|
||||||
n = Notification(**notification)
|
n = Notification(**notification)
|
||||||
session.add(n)
|
session.add(n)
|
||||||
session.commit(n)
|
session.commit()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
session.rollback()
|
session.rollback()
|
||||||
print(f"[listener.handle_reaction] error: {str(e)}")
|
print(f"[listener.handle_reaction] error: {str(e)}")
|
||||||
|
|||||||
Reference in New Issue
Block a user