diff options
author | toofar <toofar@spalge.com> | 2023-11-05 17:20:26 +1300 |
---|---|---|
committer | toofar <toofar@spalge.com> | 2023-11-05 17:49:13 +1300 |
commit | cbcf941c838fd6895c6bd6104ca5fe5996de4949 (patch) | |
tree | e946066aeafdd19ed240d520fc3e4bc7200fdb79 | |
parent | a7f154662e05085a492a7c95948e91289f4d22ef (diff) | |
download | qutebrowser-cbcf941c838fd6895c6bd6104ca5fe5996de4949.tar.gz qutebrowser-cbcf941c838fd6895c6bd6104ca5fe5996de4949.zip |
Use safe_seek()
I have no idea in what case these errors would crop up. But vulture said
the function was unused, not it's used.
-rw-r--r-- | qutebrowser/misc/pakjoy.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qutebrowser/misc/pakjoy.py b/qutebrowser/misc/pakjoy.py index 52e50e0f8..8ad932bad 100644 --- a/qutebrowser/misc/pakjoy.py +++ b/qutebrowser/misc/pakjoy.py @@ -198,7 +198,7 @@ def patch(file_to_patch: pathlib.Path = None): parser = PakParser(f) log.misc.debug(f"Patching pak entry: {parser.manifest_entry}") offset = parser.find_patch_offset() - f.seek(offset) + binparsing.safe_seek(f, offset) f.write(REPLACEMENT_URL) except binparsing.ParseError: log.misc.exception("Failed to apply quirk to resources pak.") |