From 580c15bb8ea6f6bdf196a260aa527496f4da16bc Mon Sep 17 00:00:00 2001 From: Beto Dealmeida Date: Fri, 12 Nov 2021 11:20:11 -0800 Subject: [PATCH] Run black --- superset/tasks/cron_util.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/superset/tasks/cron_util.py b/superset/tasks/cron_util.py index d0a3f27ebec8e..9c275addf6b71 100644 --- a/superset/tasks/cron_util.py +++ b/superset/tasks/cron_util.py @@ -15,10 +15,10 @@ # specific language governing permissions and limitations # under the License. +import logging from datetime import datetime, timedelta, timezone as dt_timezone from typing import Iterator -import logging from croniter import croniter from pytz import timezone as pytz_timezone, UnknownTimeZoneError @@ -36,8 +36,7 @@ def cron_schedule_window(cron: str, timezone: str) -> Iterator[datetime]: except UnknownTimeZoneError: # fallback to default timezone tz = pytz_timezone("UTC") - logger.warning( - "Timezone %s was invalid. Falling back to 'UTC'", timezone) + logger.warning("Timezone %s was invalid. Falling back to 'UTC'", timezone) utc = pytz_timezone("UTC") # convert the current time to the user's local time for comparison time_now = time_now.astimezone(tz)