Updated utils.py to catch error
Merge commit '9a09d3514107de2a324176610f89be823ba7636d'