Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ exclude_lines =

# Don't complain if tests don't hit defensive assertion code:
raise NotImplementedError
raise NotExpectedError
raise ValueError
raise TypeError
4 changes: 4 additions & 0 deletions src/shapepy/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,7 @@ def wrapper(*args, **kwargs):
return wrapper

return decorator


class NotExpectedError(Exception):
"""Raised when arrives in a section that were not expected"""