Skip to content

Commit

Permalink
fix: log saved file path
Browse files Browse the repository at this point in the history
  • Loading branch information
eoleedi committed Apr 10, 2024
1 parent 77eda33 commit 8383daf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions timetree_exporter/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

import argparse
import logging
import os
from icalendar import Calendar
from timetree_exporter import TimeTreeEvent, ICalEventFormatter
from timetree_exporter.utils import get_events_from_file, paths_to_filelist
Expand Down Expand Up @@ -82,6 +83,9 @@ def main():
# Write calendar to file
with open(args.output, "wb") as f: # Path Traversal Vulnerability if on a server
f.write(cal.to_ical())
logger.info(
"The .ics calendar file is saved to %s", os.path.abspath(args.output)
)


if __name__ == "__main__":
Expand Down

0 comments on commit 8383daf

Please sign in to comment.