trivial: reapply black to sync_desks_timeperiod_exceptions.py

This commit is contained in:
Frédéric Péters 2020-04-14 20:09:01 +02:00
parent 01aaa54b4c
commit e07c450d7c
1 changed files with 3 additions and 1 deletions

View File

@ -28,7 +28,9 @@ class Command(BaseCommand):
help = 'Synchronize time period exceptions from desks remote ics'
def handle(self, **options):
for source in TimePeriodExceptionSource.objects.filter(Q(ics_file='') | Q(ics_file__isnull=True), ics_url__isnull=False):
for source in TimePeriodExceptionSource.objects.filter(
Q(ics_file='') | Q(ics_file__isnull=True), ics_url__isnull=False
):
try:
source.desk.import_timeperiod_exceptions_from_remote_ics(source.ics_url, source=source)
except ICSError as e: