Skip to content

Commit

Permalink
Merge pull request #419 from Renumics/fix/typing-errors-in-reporting
Browse files Browse the repository at this point in the history
fix: unbound variables in reporting.py
  • Loading branch information
neindochoh authored Feb 13, 2024
2 parents 609f04e + 5c94cf8 commit 25c7d86
Showing 1 changed file with 3 additions and 2 deletions.
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

0 comments on commit 25c7d86

Please sign in to comment.