mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
code snippet should not be a translation target
This commit is contained in:
parent
bcad2b2879
commit
a224615287
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user