The following link help me to get the exact error and now I am able to fix.
gdb python catch throw run <script name> backtrace
Thanks.