diff --git a/mercurial/exchange.py b/mercurial/exchange.py --- a/mercurial/exchange.py +++ b/mercurial/exchange.py @@ -2257,7 +2257,7 @@ continue except error.InvalidBundleSpecification as e: - repo.ui.debug(str(e) + '\n') + repo.ui.debug(stringutil.forcebytestr(e) + '\n') continue except error.UnsupportedBundleSpecification as e: repo.ui.debug('filtering %s because unsupported bundle '