Skip to content

Commit 1fcc88f

Browse files
Merge pull request #38 from maurerle/fix_toml_read
fixes reading of toml files
2 parents 09bcb07 + 6142c75 commit 1fcc88f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sbom4python/scanner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ def process_uvlock_file(self, filename):
740740
filePath = pathlib.Path(filename)
741741
# Check path exists and is a valid file
742742
if filePath.exists() and filePath.is_file():
743-
with open(filename) as file:
743+
with open(filename, "rb") as file:
744744
uvlock_data = toml.load(file)
745745
if self.debug:
746746
print(uvlock_data)

0 commit comments

Comments
 (0)