Commit 0a462502 authored by Maxime Bombar's avatar Maxime Bombar

If pretty_print then don't export ics

parent 92cb5bf4
......@@ -212,9 +212,7 @@ if __name__ == '__main__':
if args.pretty:
pretty_print(days, date)
c = Calendar()
fill_calendar(c, days, date)
print(c.to_ical().decode('utf-8'))
else:
c = Calendar()
fill_calendar(c, days, date)
print(c.to_ical().decode('utf-8'))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment