Uprava timezony u letu, error logging

This commit is contained in:
Michal Kváček
2023-08-09 22:46:20 +02:00
parent 57afde90c3
commit bc260a2a8b
8 changed files with 120 additions and 33 deletions
+13
View File
@@ -0,0 +1,13 @@
from functools import wraps
from graphql import GraphQLError
def error_logging(func):
@wraps(func)
async def decorator(*args, **kwargs):
try:
return await func(*args, **kwargs)
except Exception as e:
raise GraphQLError(f"Not found")
return decorator