Skip to content

Commit fc099b9

Browse files
authored
Fix path handling for SHA256 calculation
1 parent c1cf7eb commit fc099b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/processing/pcapng.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ def run(self) -> dict[str, str | None]:
3030
if not is_pcapng(self.pcapng_path):
3131
log.warning("generated pcapng file is not valid: %s", self.pcapng_path)
3232
return {}
33-
return {"sha256": File(self.pcapng_path).get_sha256()}
33+
return {"sha256": File(str(self.pcapng_path)).get_sha256()}

0 commit comments

Comments
 (0)