8000 Specific Exceptions: Adapting usb2can interface (+ simplify + partially type) by felixdivo · Pull Request #1091 · hardbyte/python-can · GitHub
[go: up one dir, main page]

Skip to content

Specific Exceptions: Adapting usb2can interface (+ simplify + partially type) #1091

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 14, 2021

Conversation

felixdivo
Copy link
Collaborator

Part of #1046.

@codecov
Copy link
codecov bot commented Jun 13, 2021

Codecov Report

Merging #1091 (24bd95b) into develop (8e6f05a) will increase coverage by 0.32%.
The diff coverage is 35.48%.

@@             Coverage Diff             @@
##           develop    #1091      +/-   ##
===========================================
+ Coverage    70.66%   70.99%   +0.32%     
===========================================
  Files           79       79              
  Lines         7616     7588      -28     
===========================================
+ Hits          5382     5387       +5     
+ Misses        2234     2201      -33     

Comment on lines +105 to +110
@contextmanager
def error_check(error_message: str) -> None:
try:
yield
except Exception as error:
raise can.CanOperationError(error_message) from error
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's neat

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank's Brian for the chunk of reviews!

@hardbyte hardbyte merged commit ead8c70 into develop Jul 14, 2021
@hardbyte hardbyte deleted the felixdivo-issue-1046-usb2can-new branch July 14, 2021 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0