1 From 09e598ddf1f6af72ccb6c7c9301abff689e64f88 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?=E5=A4=9C=E5=9D=82=E9=9B=85?=
3 <23130178+ShadowRZ@users.noreply.github.com>
4 Date: Wed, 17 May 2023 14:32:03 +0800
5 Subject: [PATCH] Don't print a backtrace on EROFS
7 This can shut up EROFS errors caused by writing to read-only /nix/store.
9 renpy/script.py | 4 ++++
10 1 file changed, 4 insertions(+)
12 diff --git a/renpy/script.py b/renpy/script.py
13 index de35457ba..b7d511560 100644
16 @@ -705,6 +705,10 @@ class Script(object):
17 rpydigest = hashlib.md5(fullf.read()).digest()
19 self.write_rpyc_md5(f, rpydigest)
20 + except OSError as e:
23 + traceback.print_exc()