diff --git a/renumics/spotlight/reporting.py b/renumics/spotlight/reporting.py index 84031fe0..2fd4207c 100644 --- a/renumics/spotlight/reporting.py +++ b/renumics/spotlight/reporting.py @@ -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" @@ -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( {