Skip to content

Commit

Permalink
Fix coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
shangyian committed Feb 12, 2025
1 parent 1816a90 commit d4bee92
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions datajunction-server/datajunction_server/api/graphql/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,13 @@ async def wrapper(*args, **kwargs):
result = await func(*args, **kwargs)
logger.info("[GQL] %s", log_args)
return result
except Exception as exc:
logger.error("[GQL] status=error %s", log_args, exc_info=True)
raise exc
except Exception as exc: # pragma: no cover
logger.error( # pragma: no cover
"[GQL] status=error %s",
log_args,
exc_info=True,
)
raise exc # pragma: no cover

return wrapper

Expand Down

0 comments on commit d4bee92

Please sign in to comment.