Fix exception handling in test/lldbtest.py