Ignore KeyError exception, function will return 0