Skip to content

Commit

Permalink
fix: unsupported operand type(s) for +: 'NoneType' and 'int'
Browse files Browse the repository at this point in the history
  • Loading branch information
KarelZe committed Jan 9, 2024
1 parent 6837e06 commit 8724512
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ dependencies = [
"chromedb @ git+https://github.com/karelze/ccl_chrome_indexeddb@master",
"pause~=0.3",
"pyautogui~=0.9.54",
"pywinauto~=0.6.8"
#"pywinauto~=0.6.8"
]

dynamic = ["version"]
Expand Down
10 changes: 6 additions & 4 deletions src/forensicsim/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,12 +172,14 @@ def __iter__(self) -> Iterator[dict[str, Any]]:
print(f"WARNING: Skipping database {global_id.name}")
continue

max_object_stores = self.database_metadata.get_meta(
global_id.dbid_no, DatabaseMetadataType.MaximumObjectStoreId
)
max_object_stores = max_object_stores if not max_object_stores else 0

for object_store_id in range(
1,
self.database_metadata.get_meta(
global_id.dbid_no, DatabaseMetadataType.MaximumObjectStoreId
)
+ 1,
max_object_stores + 1,
):
datastore = self.object_store_meta.get_meta(
global_id.dbid_no,
Expand Down

0 comments on commit 8724512

Please sign in to comment.