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 errors related to empty database #107

Merged
merged 2 commits into from
Jun 2, 2021
Merged

Fix errors related to empty database #107

merged 2 commits into from
Jun 2, 2021

Conversation

wwade
Copy link
Owner

@wwade wwade commented Jun 2, 2021

Print nicer errors. See details in commits.

wwade added 2 commits June 1, 2021 19:02
It's not recognized in python2, so just ignore it in pylintrc.
Instead of printing some ugly IndexError backtrace when running `job` on a fresh
install, just print an error message and exit with non-zero exit code.

For `job -g <arg>` it was failing to iterate None from db getActive, so return []
instead.
@wwade wwade enabled auto-merge (rebase) June 2, 2021 02:04
@wwade wwade merged commit 8385418 into master Jun 2, 2021
@wwade wwade deleted the empty-db-errors branch June 2, 2021 02:08
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

1 participant