Skip to content

Commit

Permalink
Update abstra-lib
Browse files Browse the repository at this point in the history
  • Loading branch information
abstra-bot committed Oct 24, 2024
1 parent 245227d commit 38ce621
Show file tree
Hide file tree
Showing 221 changed files with 421 additions and 420 deletions.
7 changes: 4 additions & 3 deletions abstra_internals/controllers/execution_target.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,10 @@ def _execute_without_exit(filepath: Path):
Result = Tuple[Literal["finished", "abandoned", "failed"], Optional[Exception]]


def print_exception(exception, entrypoint: str):
def print_exception(exception: Exception, entrypoint: Path):
tb = exception.__traceback__
while tb and tb.tb_frame.f_code.co_filename not in entrypoint:
# tb.tb_frame.f_code.co_filename returns "c:" instead of "C:" on Windows
while tb and str(entrypoint).lower() != tb.tb_frame.f_code.co_filename.lower():
tb = tb.tb_next
traceback.print_exception(type(exception), exception, tb)

Expand All @@ -89,7 +90,7 @@ def _execute_code(filepath: Path) -> Result:
except ClientAbandoned as e:
return "abandoned", e
except Exception as e:
print_exception(e, entrypoint=str(filepath))
print_exception(e, entrypoint=filepath)
return "failed", e
finally:
gc.collect()

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions abstra_statics/dist/assets/ApiKeys.07149b6c.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions abstra_statics/dist/assets/ApiKeys.f796f867.js

This file was deleted.

2 changes: 0 additions & 2 deletions abstra_statics/dist/assets/App.3570cb25.js

This file was deleted.

2 changes: 2 additions & 0 deletions abstra_statics/dist/assets/App.3cbfd89a.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 38ce621

Please sign in to comment.