Skip to content

ensure nice error message when non-existing path is passed to apply_regex_substitutions#1788

Merged
boegel merged 3 commits intoeasybuilders:developfrom
boegel:apply_regex_substitutions_check_file
May 31, 2016
Merged

ensure nice error message when non-existing path is passed to apply_regex_substitutions#1788
boegel merged 3 commits intoeasybuilders:developfrom
boegel:apply_regex_substitutions_check_file

Conversation

@boegel
Copy link
Copy Markdown
Member

@boegel boegel commented May 31, 2016

No description provided.

@boegel
Copy link
Copy Markdown
Member Author

boegel commented May 31, 2016

@wpoely86 please review

Comment thread easybuild/tools/filetools.py Outdated
else:
_log.debug("Applying following regex substitutions to %s: %s", path, regex_subs)

if not os.path.exists(path):
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

why not wrap in a try? The file can exists without proper permissions?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

yeah, ok, will do

@boegel
Copy link
Copy Markdown
Member Author

boegel commented May 31, 2016

Thanks for the review @wpoely86!

@boegel boegel merged commit 5915c5e into easybuilders:develop May 31, 2016
@boegel boegel deleted the apply_regex_substitutions_check_file branch May 31, 2016 12:45
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.

2 participants