Skip to content
Open
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
7 changes: 5 additions & 2 deletions STPyV8.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import os
import sys
import re
import errno
import collections.abc

import _STPyV8
Expand Down Expand Up @@ -414,8 +415,10 @@ def icu_sync():
version_file = os.path.join(folder, "stpyv8-version.txt")
with open(version_file, encoding="utf-8", mode="w") as fd:
fd.write(__version__)
except PermissionError:
pass
except OSError as e:
if isinstance(e, PermissionError) or getattr(e, "errno", None) == errno.EROFS:
continue
raise


icu_sync()
Expand Down