-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
progress update on fail added completed_with_error to update signature added tests and fixed linting fixed linting added EnumeratedError to errors list and removed completed_with_error create an ErrorOccurence from the internal error monkeypatching not going so well progress with mocking. still not complete fixed mocking!need fo figure out datetime failing fixed bug with datetime compare remove unnecessary test reverted changes and restructured removed print reverted changes Update robot-server/robot_server/protocols/protocol_analyzer.py Co-authored-by: Seth Foster <[email protected]> pr fixes
- Loading branch information
1 parent
9f62a95
commit 240f196
Showing
4 changed files
with
138 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
"""Map errors to Exceptions.""" | ||
from opentrons_shared_data.errors import EnumeratedError, PythonException | ||
|
||
|
||
def map_unexpected_error(error: BaseException) -> EnumeratedError: | ||
"""Map an unhandled Exception to a known exception.""" | ||
if isinstance(error, EnumeratedError): | ||
return error | ||
else: | ||
return PythonException(error) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.