Skip to content

Commit

Permalink
check None, some mods copy empty files in InstallList
Browse files Browse the repository at this point in the history
  • Loading branch information
th3w1zard1 committed Nov 7, 2023
1 parent db2d28d commit 7f6eb5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pykotor/tslpatcher/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ def install(self) -> None:
if not self.should_patch(patch, exists, capsule):
continue
data_to_patch_bytes = self.lookup_resource(patch, output_container_path, exists, capsule)
if not data_to_patch_bytes:
if data_to_patch_bytes is None: # check None as sometimes mods will installlist empty files.
self.log.add_error(f"Could not locate resource to {patch.action.lower().strip()}: '{patch.sourcefile}'")
continue
if capsule:
Expand Down

0 comments on commit 7f6eb5a

Please sign in to comment.