Skip to content
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

Local PR for #300 #301

Merged
merged 1 commit into from Dec 15, 2022
Merged

Local PR for #300 #301

merged 1 commit into from Dec 15, 2022

Conversation

pjbull
Copy link
Member

@pjbull pjbull commented Dec 15, 2022

  • Move _handle attribute up in CloudPath init

The _handle attribute needs to be set before any code can raise an exception. This is because if something tries to call del after the exception as the process is exiting, _handle must be set to avoid an AttributeError in del.

Resolves #299.

  • Formatting

Co-authored-by: Bryan Weber bweber@rebelliondefense.com

* Move _handle attribute up in CloudPath __init__

The _handle attribute needs to be set before any code can raise an exception. This is because if something tries to call __del__ after the exception as the process is exiting, _handle must be set to avoid an AttributeError in __del__.

Resolves #299.

* Formatting

Co-authored-by: Bryan Weber <bweber@rebelliondefense.com>
@github-actions
Copy link
Contributor

@codecov-commenter
Copy link

Codecov Report

Merging #301 (732070b) into master (31f93ac) will not change coverage.
The diff coverage is 100.0%.

Additional details and impacted files
@@          Coverage Diff           @@
##           master    #301   +/-   ##
======================================
  Coverage    94.9%   94.9%           
======================================
  Files          21      21           
  Lines        1341    1341           
======================================
  Hits         1273    1273           
  Misses         68      68           
Impacted Files Coverage Δ
cloudpathlib/cloudpath.py 93.7% <100.0%> (ø)

@pjbull pjbull merged commit 289baeb into master Dec 15, 2022
@pjbull pjbull deleted the 300-local-merge branch December 15, 2022 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

self._handle is not defined in __del__
3 participants