Skip to content

Commit

Permalink
FIXUP: Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
apyrgio committed Sep 23, 2024
1 parent a0d7e55 commit 814b0ea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dangerzone/isolation_provider/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,9 @@ def doc_to_pixels_proc(
"""Start a conversion process, pass it to the caller, and then clean it up."""
p = self.start_doc_to_pixels_proc(document)
if platform.system() != "Windows":
assert os.getpgid(p.pid) != os.getpgid(os.getpid()), "Parent shares same PGID with child"
assert os.getpgid(p.pid) != os.getpgid(
os.getpid()
), "Parent shares same PGID with child"

try:
yield p
Expand Down

0 comments on commit 814b0ea

Please sign in to comment.