Skip to content

Commit

Permalink
Add --use-legacy-import hint message in import partial-failure outp…
Browse files Browse the repository at this point in the history
…ut (#783)

Helps #730 (by making workaround more discoverable).
  • Loading branch information
dbarnett authored Sep 28, 2024
1 parent 82c201d commit 2da8d79
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions gcalcli/gcal.py
Original file line number Diff line number Diff line change
Expand Up @@ -1652,5 +1652,12 @@ def ImportICS(self, verbose=False, dump=False, reminders=None,
f"Dumped {len(failed_events)} failed events to "
f"{ics_dump_path!s}.\n"
)
self.printer.msg(
"\n"
"Note: you can try reprocessing this file with `gcalcli "
"import --use-legacy-import` to work around some failure "
"causes (but with potentially noisier update notifications)."
"\n",
)

return True

0 comments on commit 2da8d79

Please sign in to comment.