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 problem in high-verbosity mode #98

Merged
merged 1 commit into from
Dec 27, 2024
Merged

Conversation

AAriam
Copy link
Contributor

@AAriam AAriam commented Dec 25, 2024

Currently, when verbosity is greater/equal 2 and no article_info_file is specified via the -m option, the script fails as it tries to cat the file without checking whether article_info_file is specified.

This PR adds an if-clause to perform this check beforehand and prevent errors in high-verbosity mode.

Add an if-clause to verify the existence of `article_info_file` before trying to `cat` the file to prevent errors when no `article_info_file` is specified by the user.
@tarleb
Copy link
Collaborator

tarleb commented Dec 27, 2024

Thank you!

@tarleb tarleb merged commit 31ffd1e into openjournals:main Dec 27, 2024
1 check passed
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