Skip to content
Snippets Groups Projects
Commit 7afd6af9 authored by jan.bednarik's avatar jan.bednarik
Browse files

calendar utils: Fix reporting of sync fails

parent 9527fbb2
No related branches found
No related tags found
1 merge request!39calendar utils: Fix reporting of sync fails
Pipeline #786 passed
......@@ -7,13 +7,13 @@ class Command(BaseCommand):
def handle(self, *args, **options):
self.stdout.write("Updating calendars...")
for cal in Calendar.objects.all():
self.stdout.write(f"@ {cal.url}")
self.stdout.write(f"\n@ {cal.url}")
try:
cal.update_source()
self.stdout.write("+ ok")
except Exception as e:
# TODO logging
self.stdout.write("- failed")
self.stderr.write(e)
self.stdout.write(str(e))
self.stdout.write("Updating calendars finished!")
self.stdout.write("\nUpdating calendars finished!")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment