# HG changeset patch # User Ian Moody # Date 2019-11-04 19:05:44 # Node ID 90fba2248693748164365392ddfcf164892f5bb0 # Parent 40bf3d7ecc42b7f7cf8004f346b6fe304ffe7a59 fsmonitor: use stringutil.forcebytestr() instead of str() on an exception Similar to 5fa8ac91190e / D7206, should get test-install.t passing on py3. Differential Revision: https://phab.mercurial-scm.org/D7218 diff --git a/hgext/fsmonitor/__init__.py b/hgext/fsmonitor/__init__.py --- a/hgext/fsmonitor/__init__.py +++ b/hgext/fsmonitor/__init__.py @@ -193,7 +193,7 @@ def debuginstall(ui, fm): pycompat.bytestr(v["version"]), ) except watchmanclient.Unavailable as e: - err = str(e) + err = stringutil.forcebytestr(e) fm.condwrite( err, b"fsmonitor-watchman-error",