Skip to content

Commit

Permalink
[2051] Revert Breaking Change
Browse files Browse the repository at this point in the history
  • Loading branch information
Rixxan committed Nov 17, 2023
1 parent b2d5e13 commit ebd1813
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions journal_lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit ebd1813

Please sign in to comment.