Skip to content

Commit

Permalink
fix empty try block
Browse files Browse the repository at this point in the history
  • Loading branch information
sdebruyn committed Nov 26, 2024
1 parent f762617 commit fe58c02
Showing 1 changed file with 16 additions and 17 deletions.
33 changes: 16 additions & 17 deletions src/icloudpd/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1189,23 +1189,22 @@ def _notify_mfa_error():
notification_email_from,
)

try:
icloud = authenticator(
logger,
domain,
filename_cleaner,
lp_filename_generator,
raw_policy,
file_match_policy,
password_providers,
mfa_provider,
status_exchange,
)(
username,
cookie_directory,
_notify_mfa_error,
os.environ.get("CLIENT_ID"),
)
icloud = authenticator(
logger,
domain,
filename_cleaner,
lp_filename_generator,
raw_policy,
file_match_policy,
password_providers,
mfa_provider,
status_exchange,
)(
username,
cookie_directory,
_notify_mfa_error,
os.environ.get("CLIENT_ID"),
)

if auth_only:
logger.info("Authentication completed successfully")
Expand Down

0 comments on commit fe58c02

Please sign in to comment.