Skip to content

Commit

Permalink
fix gotcha
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianTremblay committed Aug 27, 2024
1 parent de8c917 commit bb7eec6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions BAC0/db/sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,13 @@ def extract_value_and_string(val):
except Exception as error:
try:
self.log(
f"{self.properties.device.properties.name} ({self.properties.device.properties.address}) | Error in resampling {point.properties.name} | {error} (probably not enough points)",
f"{self.properties.name} ({self.properties.device.properties.address}) | Error in resampling {point.properties.name} | {error} (probably not enough points)",
level="error",
)
except AttributeError:
raise DataError("Cannot save, missing required information")
except AttributeError as error:
raise DataError(
f"Cannot save, missing required information : {error}"
)
if (
"binary" in point.properties.type
or "multi" in point.properties.type
Expand Down

0 comments on commit bb7eec6

Please sign in to comment.