Changes between Initial Version and Version 1 of Ticket #12176, comment 2
- Timestamp:
- Aug 20, 2015, 4:07:56 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #12176, comment 2
initial v1 2 2 diff -r 7be798c48b82 tracext/hg/backend.py 3 3 --- a/tracext/hg/backend.py Sat Aug 08 11:48:33 2015 +0900 4 +++ b/tracext/hg/backend.py Thu Aug 20 23:01:00 2015 +0900 4 +++ b/tracext/hg/backend.py Thu Aug 20 23:06:36 2015 +0900 5 @@ -118,7 +118,7 @@ 6 has_phasestr = None 7 8 except ImportError, e: 9 - hg_import_error = e 10 + hg_import_error = exception_to_unicode(e) 11 ui = object 12 13 5 14 @@ -391,7 +391,10 @@ 6 15 locale_dir = pkg_resources.resource_filename(__name__, 'locale') … … 10 19 + if hg_import_error: 11 20 + self.log.warn('Failed to load Mercurial bindings (%s)', 12 + exception_to_unicode(hg_import_error))21 + hg_import_error) 13 22 + else: 14 23 try: