Skip to content

Commit

Permalink
Merge f66aea7 into 509324d
Browse files Browse the repository at this point in the history
  • Loading branch information
snopoke committed Aug 6, 2021
2 parents 509324d + f66aea7 commit 374df4e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions commcare_export/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,13 @@ def main_with_args(args):
'--query, --users, --locations', file=sys.stderr)
return EXIT_STATUS_ERROR

if not args.username:
args.username = input('Please provide a username: ')

if not args.password:
# Windows getpass does not accept unicode
args.password = getpass.getpass()

column_enforcer = None
if args.with_organization:
column_enforcer = builtin_queries.ColumnEnforcer()
Expand All @@ -321,13 +328,6 @@ def main_with_args(args):
if writer.support_checkpoints:
checkpoint_manager = _get_checkpoint_manager(args)

if not args.username:
args.username = input('Please provide a username: ')

if not args.password:
# Windows getpass does not accept unicode
args.password = getpass.getpass()

since, until = get_date_params(args)
if args.start_over:
if checkpoint_manager:
Expand Down

0 comments on commit 374df4e

Please sign in to comment.