Yes, it is there to avoid ugly tracebacks.