This unfortunately will tend to lose backtrace information if it's some other exception you don't expect. Can you catch a more specific exception?