try catch added in parser.py