Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: unbound variables in reporting.py #419

Merged
merged 2 commits into from
Feb 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions renumics/spotlight/reporting.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,8 @@ def skip_analytics() -> bool:
def _get_python_runtime() -> str:
# try to determine what python runtime we are running in
# plain python, ipython, ipython in colab, ipython in kaggle
python_runtime = "python"
try:
python_runtime = "python"

try:
ipython_kernel = get_ipython() # type:ignore
python_runtime = "ipython"
Expand Down Expand Up @@ -203,6 +202,8 @@ def emit_exception_event(path: Optional[str] = None) -> None:

if path:
detail = f"Path: {path}\n" + "\n\n".join(traceback_exc.format())
else:
detail = "Path: None\n" + "\n\n".join(traceback_exc.format())

report_event(
{
Expand Down
Loading