Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import logging
import os
import plistlib
import portalocker
import traceback
import sys

Expand Down Expand Up @@ -530,7 +531,7 @@ def convert(
def write(self, data: Any, output_file_path: str):
""" Creates an analyzer output file from the given data. """
try:
with open(output_file_path, 'wb') as f:
with portalocker.Lock(output_file_path, 'wb') as f:
plistlib.dump(data, f)
except TypeError as err:
LOG.error('Failed to write plist file: %s', output_file_path)
Expand Down
Loading