code snippet should not be a translation target

This commit is contained in:
Takayuki SHIMIZUKAWA 2019-03-25 23:47:49 +09:00 committed by GitHub
parent bcad2b2879
commit a224615287
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,7 +66,7 @@ def handle_exception(app, args, exception, stderr=sys.stderr):
print(__('This can happen with very large or deeply nested source ' print(__('This can happen with very large or deeply nested source '
'files. You can carefully increase the default Python ' 'files. You can carefully increase the default Python '
'recursion limit of 1000 in conf.py with e.g.:'), file=stderr) 'recursion limit of 1000 in conf.py with e.g.:'), file=stderr)
print(__(' import sys; sys.setrecursionlimit(1500)'), file=stderr) print(' import sys; sys.setrecursionlimit(1500)', file=stderr)
else: else:
print(red(__('Exception occurred:')), file=stderr) print(red(__('Exception occurred:')), file=stderr)
print(format_exception_cut_frames().rstrip(), file=stderr) print(format_exception_cut_frames().rstrip(), file=stderr)