Skip to content

Commit

Permalink
log as info, not as warning: derby_gov_uk
Browse files Browse the repository at this point in the history
  • Loading branch information
mampfes committed Dec 24, 2022
1 parent d80e74a commit e170921
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import logging
from datetime import datetime
from urllib.parse import parse_qs, urlsplit

import requests
from waste_collection_schedule import Collection # type: ignore[attr-defined]

from bs4 import BeautifulSoup
from urllib.parse import urlsplit, parse_qs
import logging
from waste_collection_schedule import Collection # type: ignore[attr-defined]

TITLE = "Derby.gov.uk"
DESCRIPTION = "Source for Derby.gov.uk services for Derby City Council, UK."
Expand Down Expand Up @@ -75,7 +74,7 @@ def fetch(self):
try:
date = datetime.strptime(date.text, "%A, %d %B %Y:").date()
except ValueError:
_LOGGER.error(f"Skipped {date} as it does not match time format")
_LOGGER.info(f"Skipped {date} as it does not match time format")
continue
img_tag = result.find("img")
collection_type = img_tag["alt"]
Expand Down

0 comments on commit e170921

Please sign in to comment.