Skip to content

Commit

Permalink
Run black
Browse files Browse the repository at this point in the history
  • Loading branch information
betodealmeida committed Nov 12, 2021
1 parent 07e11fd commit 580c15b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions superset/tasks/cron_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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)
Expand Down

0 comments on commit 580c15b

Please sign in to comment.