mirror of
https://github.com/j93es/oauth-backend.git
synced 2026-06-04 05:01:51 +09:00
[Refactor and Enhance] addon init.py의 비동기 작업을 더욱 효율적으로 수행
This commit is contained in:
parent
58d5deb435
commit
0d81fdd49f
7 changed files with 58 additions and 155 deletions
5
lib/utils/try_catch.py
Normal file
5
lib/utils/try_catch.py
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
async def try_catch(coro):
|
||||
try:
|
||||
return await coro
|
||||
except Exception as e:
|
||||
print(f"[ERROR] {coro} failed: {e}")
|
||||
Loading…
Add table
Add a link
Reference in a new issue