Uprava timezony u letu, error logging
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user