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

Fixes #3253 Cookbook generation failure missing file indicator #3255

Merged
merged 1 commit into from Jun 13, 2016

Conversation

arianepaola
Copy link
Contributor

This fixes #3253 Cookbook generation failure missing responsible file indicator.

@arianepaola
Copy link
Contributor Author

@vigsterkr @karlnapf @lgoetz

Please review and merge.

@karlnapf
Copy link
Member

karlnapf commented Jun 8, 2016

I added this in f2b6e3b

@karlnapf
Copy link
Member

karlnapf commented Jun 8, 2016

Let me know if you think this one is better, closing for now

@karlnapf karlnapf closed this Jun 8, 2016
@arianepaola
Copy link
Contributor Author

arianepaola commented Jun 8, 2016

@karlnapf The crash happens earlier, when loading json. So it does not get to print the file name.

targets.append(json.load(tFile))

@karlnapf
Copy link
Member

karlnapf commented Jun 8, 2016

As discussed in irc, a try - except would be better

@karlnapf karlnapf reopened this Jun 8, 2016
@arianepaola
Copy link
Contributor Author

@karlnapf I updated this one.


translate_file = os.path.join(targetsDir, target)

with open(translate_file) as tFile:
Copy link
Member

Choose a reason for hiding this comment

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

is this both Python 2 and 3 compatible?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@karlnapf yes

@karlnapf
Copy link
Member

Good then, can you squash the commits into a single one? Then fine to merge

@arianepaola
Copy link
Contributor Author

@karlnapf squashed in latest PR update.

@karlnapf
Copy link
Member

Thanks

@karlnapf karlnapf merged commit 997e54c into shogun-toolbox:develop Jun 13, 2016
karasikov pushed a commit to karasikov/shogun that referenced this pull request Apr 15, 2017
Fixes shogun-toolbox#3253 Cookbook generation failure missing file indicator
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.

Cookbook generation failure missing responsible file indicator
2 participants