diff --git a/PySpice/Spice/NgSpice/Shared.py b/PySpice/Spice/NgSpice/Shared.py index 183c08a4..fdb7bba9 100644 --- a/PySpice/Spice/NgSpice/Shared.py +++ b/PySpice/Spice/NgSpice/Shared.py @@ -618,9 +618,10 @@ def _send_char(message_c, ngspice_id, user_data): prefix, _, content = message.partition(' ') if prefix == 'stderr': self._stderr.append(content) - if content.startswith('Warning:'): + if "Warning:" in content: + func = self._logger.warning + elif "Note:" in content: func = self._logger.warning - # elif content.startswith('Warning:'): else: self._error_in_stderr = True func = self._logger.error