From 2e2fbb7ccecd8219561b01b71b53636bfda75acd Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 15 Nov 2021 08:26:09 +0530 Subject: [PATCH] ... --- src/calibre/devices/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/devices/__init__.py b/src/calibre/devices/__init__.py index 95db5d65cd..ecbe784aee 100644 --- a/src/calibre/devices/__init__.py +++ b/src/calibre/devices/__init__.py @@ -112,7 +112,7 @@ def debug(ioreg_to_tmp=False, buf=None, plugins=None, drives = pprint.pformat(Device.osx_get_usb_drives()) ioreg = 'Output from mount:\n'+mount+'\n\n' ioreg += 'Output from osx_get_usb_drives:\n'+drives+'\n\n' - ioreg += Device.run_ioreg().decode('utf-8') + ioreg += Device.run_ioreg().decode('utf-8', 'replace') connected_devices = [] if disabled_plugins: out('\nDisabled plugins:', textwrap.fill(' '.join([x.__class__.__name__ for x in