Skip to content

Commit

Permalink
Merge pull request #36 from simonsobs/dev
Browse files Browse the repository at this point in the history
Require nextline 0.7.3 or later
  • Loading branch information
TaiSakuma authored Apr 22, 2024
2 parents 9c1163e + 961224a commit b07312e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions nextlinegraphql/plugins/ctrl/schema/query.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import traceback
from typing import TYPE_CHECKING, Optional

import strawberry
Expand Down Expand Up @@ -41,9 +40,7 @@ def query_source_line(info: Info, line_no: int, file_name: Optional[str]) -> str

def query_exception(info: Info) -> Optional[str]:
nextline: Nextline = info.context["nextline"]
if exc := nextline.exception():
return "".join(traceback.format_exception(type(exc), exc, exc.__traceback__))
return None
return nextline.format_exception()


def query_continuous_enabled(info: Info) -> bool:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ classifiers = [
"Programming Language :: Python :: 3.12",
]
dependencies = [
"nextline>=0.7.2",
"nextline>=0.7.3",
"apluggy>=0.9.9",
"dynaconf>=3.2",
"starlette>=0.31",
Expand Down

0 comments on commit b07312e

Please sign in to comment.