Merge lp://qastaging/~seyeongkim/charm-helpers/fixing-filenotfounderror into lp://qastaging/charm-helpers

Proposed by Seyeong Kim
Status: Superseded
Proposed branch: lp://qastaging/~seyeongkim/charm-helpers/fixing-filenotfounderror
Merge into: lp://qastaging/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://qastaging/~seyeongkim/charm-helpers/fixing-filenotfounderror
Reviewer Review Type Date Requested Status
Stuart Bishop (community) Needs Fixing
Review via email: mp+329707@code.qastaging.launchpad.net

This proposal has been superseded by 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://bugs.launchpad.net/nrpe-charm/+bug/1712977

To post a comment you must log in.
Revision history for this message
Stuart Bishop (stub) wrote :

FileNotFoundError doesn't exist with older Python releases. Its probably best to return None if 'not os.path.exists' rather than catch the exception.

review: Needs Fixing
787. By Xtrusia <xtrusia@xtrusia-desktop>

Changing FileNotFoundError exception to os.path.exists

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches