Skip to content

Commit

Permalink
Add debug output to SeaTemperatureInfo scraper
Browse files Browse the repository at this point in the history
  • Loading branch information
torbencarstens committed Dec 7, 2023
1 parent 6e9ef07 commit 2a0ac82
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lake_scrapers/scrapers/seatemperatureinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ def parse(self, response, **kwargs):
regex = self.data[path]["regex"]
content: str = response.text
matches = regex.search(content)
temperature = matches.group("temperature")
try:
temperature = matches.group("temperature")
except AttributeError:
print(content)

timestamp = datetime.now().timestamp()
timestamp = convert_timestamp(timestamp, is_timestamp=True)
Expand Down

0 comments on commit 2a0ac82

Please sign in to comment.