Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
#17: fix wrong syntax introduced on the last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
derrix060 committed Sep 28, 2018
1 parent 44020c8 commit db5e19c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions onedrived/od_pref.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,15 +369,15 @@ def set_drive(drive_id=None, email=None, local_root=None, ignore_file=None):
all_drives, drive_table = print_all_drives()
click.echo()
# Get drive_id and email
if not all(drive_id, email):
if not all([drive_id, email]):
# Interactive mode to ask for which drive to add.
index = click.prompt('Please enter row number of the Drive to add or modify (CTRL+C to abort)', type=int)
email, drive_id = index_to_drive_table_row(index, drive_table)
# Get account_id
account_id = email_to_account_id(context, email)
# Check if drive_id exists on OneDrive.
acc_profile, _, drives = all_drives[account_id]
if not any(drive.id == drive_id for drive in drives):
if not any([drive.id == drive_id for drive in drives]):
error('Did not find Drive "%s".' % drive_id)
return
# Check if drive is already configured.
Expand Down

0 comments on commit db5e19c

Please sign in to comment.