The following looks cleaner to me:
```python
        try:
            return self.widget_resources[resource_type][widget_type]
        except KeyError:
            return NoResource()
```