Merge lp:~seyeongkim/charm-helpers/fixing-filenotfounderror into lp:charm-helpers
Proposed by
Seyeong Kim
Status: | Merged |
---|---|
Merged at revision: | 786 |
Proposed branch: | lp:~seyeongkim/charm-helpers/fixing-filenotfounderror |
Merge into: | lp:charm-helpers |
Diff against target: |
22 lines (+6/-1) 1 file modified
charmhelpers/core/hookenv.py (+6/-1) |
To merge this branch: | bzr merge lp:~seyeongkim/charm-helpers/fixing-filenotfounderror |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Stuart Bishop (community) | Approve | ||
Review via email: mp+329727@code.launchpad.net |
This proposal supersedes a proposal from 2017-08-28.
Description of the change
ignore FileNotFoundError when getting metadata file on the other machine's unit
related bug is https:/
To post a comment you must log in.
FileNotFoundError doesn't exist with older Python releases. Its probably best to return None if 'not os.path.exists' rather than catch the exception.