##// END OF EJS Templates
dispatch: allow testedwith to be bytes or str
Augie Fackler -
r31179:49ad6bf6 default
parent child Browse files
Show More
@@ -857,6 +857,8 b' def _exceptionwarning(ui):'
857 857 if ui.config('ui', 'supportcontact', None) is None:
858 858 for name, mod in extensions.extensions():
859 859 testedwith = getattr(mod, 'testedwith', '')
860 if pycompat.ispy3 and isinstance(testedwith, str):
861 testedwith = testedwith.encode(u'utf-8')
860 862 report = getattr(mod, 'buglink', _('the extension author.'))
861 863 if not testedwith.strip():
862 864 # We found an untested extension. It's likely the culprit.
@@ -877,7 +879,7 b' def _exceptionwarning(ui):'
877 879 worst = name, nearest, report
878 880 if worst[0] is not None:
879 881 name, testedwith, report = worst
880 if not isinstance(testedwith, str):
882 if not isinstance(testedwith, (bytes, str)):
881 883 testedwith = '.'.join([str(c) for c in testedwith])
882 884 warning = (_('** Unknown exception encountered with '
883 885 'possibly-broken third-party extension %s\n'
General Comments 0
You need to be logged in to leave comments. Login now