Skip to content

Hotfix for notebooks #2 - Pivot exceptions and nbinit

Choose a tag to compare

@ianhelle ianhelle released this 29 Jun 21:25

Fixes

788b4ee@

  • Added new context manager in MsticpyUserError to stop standard display of msticpy user exceptions.
    Note this doesn't suppress the exception, just stops exception being output to notebook even if exception is caught.

    Example:
from msticpy.common.exceptions import MsticpyUserError
with MsticpyUserError.no_display_exceptions():
   # do stuff that may cause exceptions to be display.
  • Fixed typo in path for msticpyconfig.yaml was causing searches to always fail.
  • Updated test_nbinit.py - fix one test. Using temp_path instead of tmpdir fixture.