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

Fix #1839 #2293

Merged
merged 5 commits into from May 15, 2016
Merged

Fix #1839 #2293

merged 5 commits into from May 15, 2016

Conversation

ralsina
Copy link
Member

@ralsina ralsina commented Mar 9, 2016

Avoid calling sys.exit() from plugins if possible.

utils.LOGGER.error("The gallery input or output folder '{0}' appears in more than one entry in GALLERY_FOLDERS, exiting.".format(problem))
sys.exit(1)
utils.LOGGER.error("The gallery input or output folder '{0}' appears in more than one entry in GALLERY_FOLDERS, ignoring.".format(problem))
continue
Copy link
Contributor

Choose a reason for hiding this comment

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

Why ignoring this instead of raising an exception? This will with high probability (haven't checked to be 100% sure) lead to an error as the plugin tries to create index.html in the output folder twice.

Copy link
Member Author

Choose a reason for hiding this comment

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

And that will cause an error. No need to create a specific one here.

@ralsina ralsina merged commit fee24d0 into master May 15, 2016
@ralsina ralsina deleted the no-exit branch May 15, 2016 01:57
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.

None yet

2 participants