Skip to content

Commit

Permalink
Fix missing arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
CoolCat467 committed Sep 27, 2023
1 parent 5023739 commit 64ee1cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions trio/_tools/gen_exports.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def run_black(file: File, source: str) -> tuple[bool, str]:
check=True,
)
except subprocess.CalledProcessError as exc:
error = traceback.format_exception(exc)
error = traceback.format_exception(type(exc), exc, exc.__traceback__)
return (False, f"Failed to run black!\n{error}")
return (True, result.stdout)

Expand Down Expand Up @@ -157,7 +157,7 @@ def run_ruff(file: File, source: str) -> tuple[bool, str]:
check=True,
)
except subprocess.CalledProcessError as exc:
error = traceback.format_exception(exc)
error = traceback.format_exception(type(exc), exc, exc.__traceback__)
return (False, f"Failed to run ruff!\n{error}")
return (True, result.stdout)

Expand Down

0 comments on commit 64ee1cd

Please sign in to comment.