diff --git a/snap7/util/db.py b/snap7/util/db.py index 7c84261f..bd36776a 100644 --- a/snap7/util/db.py +++ b/snap7/util/db.py @@ -315,7 +315,7 @@ def make_rows(self) -> None: if key and key in self.index: msg = f"{key} not unique!" logger.error(msg) - self.index[key] = row + self.index[str(key)] = row def __getitem__(self, key: str, default: Optional[None] = None) -> Union[None, "Row"]: """Access a row of the table through its index.