ej2 / python-quickbooks

A Python library for accessing the Quickbooks API.
MIT License
394 stars 193 forks source link

Use with to open file attachments #342

Closed redblacktree closed 5 months ago

redblacktree commented 6 months ago

Ensures that the file is closed even if there are errors in the process. I discovered this issue because I got a non-200 response that caused the client to raise error code 10000, and my subsequent cleanup code failed to delete a temp file because it was already open.

codecov-commenter commented 5 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 93.72%. Comparing base (73edf4d) to head (4d3b2cc).

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #342 +/- ## ========================================== + Coverage 93.45% 93.72% +0.27% ========================================== Files 103 103 Lines 3924 3935 +11 Branches 171 174 +3 ========================================== + Hits 3667 3688 +21 + Misses 217 209 -8 + Partials 40 38 -2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.