From bb20156277405e4c073bc0923e3ce7469ca5ca49 Mon Sep 17 00:00:00 2001 From: UniverseDevel <47400898+UniverseDevel@users.noreply.github.com> Date: Tue, 15 Feb 2022 18:58:25 +0100 Subject: [PATCH] Update rpatool Prevent crashing with "Could not save archive file: a bytes-like object is required, not 'str'" --- rpatool | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpatool b/rpatool index b255032..bb7a179 100755 --- a/rpatool +++ b/rpatool @@ -133,7 +133,7 @@ class RenPyArchive: padding += chr(random.randint(1, 255)) length -= 1 - return padding + return bytes(padding, 'utf-8') # Converts a filename to archive format. def convert_filename(self, filename):