Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
fix for empty input
Browse files Browse the repository at this point in the history
  • Loading branch information
fchapoton committed Nov 5, 2021
1 parent 8c8fc39 commit 00d94ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sage_docbuild/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1722,7 +1722,8 @@ def main():
# trying to build.
name, typ = args.document, args.format
if not name or not type:
raise ValueError('both document and format should be given')
parser.print_help()
sys.exit(1)

# Set up module-wide logging.
setup_logger(args.verbose, args.color)
Expand Down

0 comments on commit 00d94ff

Please sign in to comment.