diff --git a/src/dlite-misc.c b/src/dlite-misc.c index 866e7dd01..2bcccaa56 100644 --- a/src/dlite-misc.c +++ b/src/dlite-misc.c @@ -549,7 +549,7 @@ static void dlite_err_handler(const ErrRecord *record) { #ifdef WITH_PYTHON if (record->level != errLevelError || - !getenv("DLITE_PYDEBUG") || + getenv("DLITE_PYDEBUG") || !dlite_err_ignored_get(record->eval)) err_default_handler(record); #else /* WITH_PYTHON */