From ebd1813612dd6e66c82d3894306199145c65d793 Mon Sep 17 00:00:00 2001 From: David Sangrey Date: Fri, 17 Nov 2023 11:37:36 -0500 Subject: [PATCH] [2051] Revert Breaking Change --- journal_lock.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/journal_lock.py b/journal_lock.py index b6f816b98..4d04992f8 100644 --- a/journal_lock.py +++ b/journal_lock.py @@ -65,8 +65,7 @@ def open_journal_dir_lockfile(self) -> bool: self.journal_dir_lockfile_name = self.journal_dir_path / 'edmc-journal-lock.txt' # type: ignore logger.trace_if('journal-lock', f'journal_dir_lockfile_name = {self.journal_dir_lockfile_name!r}') try: - with open(self.journal_dir_lockfile_name, mode='w+', encoding='utf-8') as lockfile: - self.journal_dir_lockfile = lockfile + self.journal_dir_lockfile = open(self.journal_dir_lockfile_name, mode='w+', encoding='utf-8') # Linux CIFS read-only mount throws: OSError(30, 'Read-only file system') # Linux no-write-perm directory throws: PermissionError(13, 'Permission denied')