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

Raise don't exit when required args aren't present #51

Merged
merged 1 commit into from
May 23, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions conda_mirror/conda_mirror.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,8 @@ def _parse_and_format_args():

for required in ('target_directory', 'platform', 'upstream_channel'):
if not getattr(args, required):
logger.error("Missing required argument: %s", required)
sys.exit(1)
raise ValueError("Missing command line argument: %s", required)

if args.pdb:
# set the pdb_hook as the except hook for all exceptions
def pdb_hook(exctype, value, traceback):
Expand Down