Skip to content
Snippets Groups Projects
Commit 0bb52998 authored by Pierre-Yves David's avatar Pierre-Yves David :octopus:
Browse files

pytype: only output the "pytype crashed" message on error

If pytype did not crash while generating stub, that message is kind of
confusing. It seems simple enough to avoid it in this case.
parent f4a08060
No related branches found
No related tags found
1 merge request!742pytype: modernise import and annotation
......@@ -127,5 +127,7 @@
-x mercurial/wireprotov1peer.py \
-x mercurial/wireprotov1server.py
echo 'pytype crashed while generating the following type stubs:'
find .pytype/pyi -name '*.pyi' | xargs grep -l '# Caught error' | sort
if find .pytype/pyi -name '*.pyi' | xargs grep -ql '# Caught error'; then
echo 'pytype crashed while generating the following type stubs:'
find .pytype/pyi -name '*.pyi' | xargs grep -l '# Caught error' | sort
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment