trivial: apply black settings to sync_desks_timeperiod_exceptions.py

This commit is contained in:
Frédéric Péters 2020-03-11 12:42:31 +01:00
parent 76216de0c3
commit 6fbe1e85cc
1 changed files with 3 additions and 1 deletions

View File

@ -36,7 +36,9 @@ class Command(BaseCommand):
u'unable to create timeperiod exceptions for "%s": %s' % (source.desk, e), file=sys.stderr
)
for source in TimePeriodExceptionSource.objects.filter(ics_url__isnull=True).exclude(Q(ics_file='') | Q(ics_file__isnull=True)):
for source in TimePeriodExceptionSource.objects.filter(ics_url__isnull=True).exclude(
Q(ics_file='') | Q(ics_file__isnull=True)
):
try:
source.desk.import_timeperiod_exceptions_from_ics_file(source.ics_file, source=source)
except ICSError as e: