Skip to content

Commit

Permalink
fix error message when no argument is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
perrette committed Jul 7, 2021
1 parent 0140bca commit a7417ea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion papers/bib.py
Original file line number Diff line number Diff line change
Expand Up @@ -1365,7 +1365,9 @@ def check_install():
elif o.cmd == 'extract':
extractcmd(o)
else:
raise ValueError('this is a bug')
parser.print_help()
parser.exit(1)
# raise ValueError('this is a bug')


if __name__ == '__main__':
Expand Down

0 comments on commit a7417ea

Please sign in to comment.