# HG changeset patch # User Marcin Kuzminski # Date 2019-03-05 09:13:26 # Node ID 93babdbb134ed629d081c54c91edbc54dc12e652 # Parent 377e31e9f570aba314e82379cc1c7d6bdb3e2ec0 Mercurial: errors, properly expose lookup exceptions traceback. diff --git a/vcsserver/exceptions.py b/vcsserver/exceptions.py --- a/vcsserver/exceptions.py +++ b/vcsserver/exceptions.py @@ -37,7 +37,7 @@ def _make_exception(kind, org_exc, *args exc = Exception(*args) exc._vcs_kind = kind exc._org_exc = org_exc - exc._org_exc_tb = '' + exc._org_exc_tb = getattr(org_exc, '_org_exc_tb', '') return exc