try except for cnttype in parser

Signed-off-by: Marco Milanesio <milanesio.marco@gmail.com>