Use get(key, default) construct

It's cleaner than a try/except block catching a KeyError.