Skip to content

Commit

Permalink
add SPARTNStreamError to exception handler
Browse files Browse the repository at this point in the history
  • Loading branch information
semuadmin committed Jun 10, 2024
1 parent 3eb5b20 commit c260b9e
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
"python3.8InterpreterPath": "/Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8",
"modulename": "${workspaceFolderBasename}",
"distname": "${workspaceFolderBasename}",
"moduleversion": "1.0.1"
"moduleversion": "1.0.2"
}
8 changes: 7 additions & 1 deletion RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# pyspartn Release Notes

### RELEASE 1.0.0
### RELEASE 1.0.2

ENHANCEMENTS:

1. Include SPARTNStreamError in ERRIGNORE handling.

### RELEASE 1.0.1

ENHANCEMENTS:

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name = "pyspartn"
authors = [{ name = "semuadmin", email = "[email protected]" }]
maintainers = [{ name = "semuadmin", email = "[email protected]" }]
description = "SPARTN protocol parser"
version = "1.0.1"
version = "1.0.2"
license = { file = "LICENSE" }
readme = "README.md"
requires-python = ">=3.8"
Expand Down
2 changes: 1 addition & 1 deletion src/pyspartn/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
:license: BSD 3-Clause
"""

__version__ = "1.0.1"
__version__ = "1.0.2"
7 changes: 6 additions & 1 deletion src/pyspartn/spartnreader.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,12 @@ def read(self) -> tuple:

except EOFError:
return (None, None)
except (SPARTNParseError, SPARTNMessageError, SPARTNTypeError) as err:
except (
SPARTNParseError,
SPARTNMessageError,
SPARTNTypeError,
SPARTNStreamError,
) as err:
if self._quitonerror:
self._do_error(err)
continue
Expand Down

0 comments on commit c260b9e

Please sign in to comment.