ruff lint fixes

This commit is contained in:
Tim Bendt
2025-05-08 12:03:38 -06:00
parent eba883a465
commit 9f4ec1b6c5
9 changed files with 6 additions and 24 deletions

View File

@@ -242,7 +242,7 @@ async def fetch_calendar_async(headers, progress, task_id):
# Get the next page URL from @odata.nextLink
calendar_url = response_data.get('@odata.nextLink')
output_file = f'output_ics/outlook_events_latest.ics'
output_file = 'output_ics/outlook_events_latest.ics'
if not dry_run:
os.makedirs(os.path.dirname(output_file), exist_ok=True)
progress.console.print(f"Saving events to {output_file}...")
@@ -300,7 +300,7 @@ async def save_mime_to_maildir_async(maildir_path, email_data, attachments_dir,
target_dir = 'cur' if email_data.get('isRead', False) else 'new'
id = email_data.get('id', '')
if not id:
progress.console.print(f"Message ID not found. Skipping save.")
progress.console.print("Message ID not found. Skipping save.")
return
email_filename = f"{id}.eml"
email_filepath = os.path.join(maildir_path, target_dir, email_filename)