fixed run_tests.py bug
Merge pull request #827 from ncos/advanced-dump

Put the new code under try-catch