candlepin/subscription-manager — pull request #901 by cakofony (2014-02-07 22:17:29+00:00)
Title: make sure entitlement has a pool before reading it

Some v1 certs appear to have a Nonetype pool

```
2014-02-07 17:10:00,323 [DEBUG] subscription-manager-gui @connection.py:450 - Making request: GET /candlepin/status
2014-02-07 17:10:00,333 [DEBUG] subscription-manager-gui @connection.py:473 - Response: status=200, requestUuid=ff8c8dcd-a03e-4f84-bb1e-dd8e210ae779
2014-02-07 17:10:00,333 [DEBUG] subscription-manager-gui @managergui.py:151 - Server Versions: {'candlepin': '0.9.2-1', 'server-type': 'Red Hat Subscription Management'}
2014-02-07 17:10:00,378 [ERROR] subscription-manager-gui @subscription-manager-gui:205 - 'NoneType' object has no attribute 'id'
Traceback (most recent call last):
File "/home/ckozak/code/subscription-manager/bin/subscription-manager-gui", line 188, in
main = managergui.MainWindow(auto_launch_registration=options.register)
File "/home/ckozak/code/subscription-manager/src/subscription_manager/gui/managergui.py", line 186, in __init__
prod_dir=self.product_dir)
File "/home/ckozak/code/subscription-manager/src/subscription_manager/gui/mysubstab.py", line 61, in __init__
self.pooltype_cache = require(POOLTYPE_CACHE)
File "/home/ckozak/code/subscription-manager/src/subscription_manager/injection.py", line 98, in require
return FEATURES.require(feature, *args, **kwargs)
File "/home/ckozak/code/subscription-manager/src/subscription_manager/injection.py", line 72, in require
self.providers[feature] = provider()
File "/home/ckozak/code/subscription-manager/src/subscription_manager/cache.py", line 470, in __init__
self.update()
File "/home/ckozak/code/subscription-manager/src/subscription_manager/cache.py", line 476, in update
if self.requires_update():
File "/home/ckozak/code/subscription-manager/src/subscription_manager/cache.py", line 485, in requires_update
attached_pool_ids = set([ent.pool.id for ent in self.ent_dir.list()])
```