Dictionary .get never throws KeyError; if the second arg isn't specified it return None if the key isn't present, so I think that's OK.
I think that if we had an imageId of 0 or '' or another value that is False in Python, we'd break everywhere, so I'd prefer to leave it as-is for clarity. Happy to fix if others disagree though...
Dictionary .get never throws KeyError; if the second arg isn't specified it return None if the key isn't present, so I think that's OK.
I think that if we had an imageId of 0 or '' or another value that is False in Python, we'd break everywhere, so I'd prefer to leave it as-is for clarity. Happy to fix if others disagree though...