{"action":"created","issue":{"url":"https://api.github.com/repos/NSLS-II/suitcase/issues/9","repository_url":"https://api.github.com/repos/NSLS-II/suitcase","labels_url":"https://api.github.com/repos/NSLS-II/suitcase/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/NSLS-II/suitcase/issues/9/comments","events_url":"https://api.github.com/repos/NSLS-II/suitcase/issues/9/events","html_url":"https://github.com/NSLS-II/suitcase/issues/9","id":144080626,"number":9,"title":"Suitcase export error at CHX","user":{"login":"ericdill","id":6223243,"avatar_url":"https://avatars.githubusercontent.com/u/6223243?v=3","gravatar_id":"","url":"https://api.github.com/users/ericdill","html_url":"https://github.com/ericdill","followers_url":"https://api.github.com/users/ericdill/followers","following_url":"https://api.github.com/users/ericdill/following{/other_user}","gists_url":"https://api.github.com/users/ericdill/gists{/gist_id}","starred_url":"https://api.github.com/users/ericdill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericdill/subscriptions","organizations_url":"https://api.github.com/users/ericdill/orgs","repos_url":"https://api.github.com/users/ericdill/repos","events_url":"https://api.github.com/users/ericdill/events{/privacy}","received_events_url":"https://api.github.com/users/ericdill/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":36,"created_at":"2016-03-28T20:53:59Z","updated_at":"2016-03-29T16:48:39Z","closed_at":"2016-03-29T13:31:23Z","body":"@ordirules reported this export error to me via email:\r\n\r\n```\r\n---------------------------------------------------------------------------\r\nKeyError                                  Traceback (most recent call last)\r\n<ipython-input-4-2f4252d32139> in <module>()\r\n----> 1 suitcase.export(cfndb,\"/home/lhermitte/test.hd5\")\r\n\r\n/opt/conda_envs/analysis/lib/python3.4/site-packages/suitcase-0.2.2-py3.4.egg/suitcase.py in export(headers, filename)\r\n     46                 data_group = desc_group.create_group('data')\r\n     47                 ts_group = desc_group.create_group('timestamps')\r\n---> 48                 [fill_event(e) for e in events]\r\n     49                 for key, value in data_keys.items():\r\n     50                     value = dict(value)\r\n\r\n/opt/conda_envs/analysis/lib/python3.4/site-packages/suitcase-0.2.2-py3.4.egg/suitcase.py in <listcomp>(.0)\r\n     46                 data_group = desc_group.create_group('data')\r\n     47                 ts_group = desc_group.create_group('timestamps')\r\n---> 48                 [fill_event(e) for e in events]\r\n     49                 for key, value in data_keys.items():\r\n     50                     value = dict(value)\r\n\r\n/opt/conda_envs/analysis/lib/python3.4/site-packages/databroker/databroker.py in fill_event(event, handler_registry, handler_overrides)\r\n    280         if is_external.get(data_key, False):\r\n    281             if data_key not in handler_overrides:\r\n--> 282                 event.data[data_key] = fs.retrieve(value, handler_registry)\r\n    283             else:\r\n    284                 mock_registry = mock_registries[data_key]\r\n\r\n/opt/conda_envs/analysis/lib/python3.4/site-packages/filestore/api.py in get_data(eid, handle_registry)\r\n    154         handle_registry = {}\r\n    155     with _FS_SINGLETON.handler_context(handle_registry) as fs:\r\n--> 156         return fs.get_datum(eid)\r\n    157\r\n    158\r\n\r\n/opt/conda_envs/analysis/lib/python3.4/site-packages/filestore/fs.py in get_datum(self, eid)\r\n    113         return _get_datum(self._datum_col, eid,\r\n    114                           self._datum_cache, self.get_spec_handler,\r\n--> 115                           logger)\r\n    116\r\n    117     def register_handler(self, key, handler, overwrite=False):\r\n\r\n/opt/conda_envs/analysis/lib/python3.4/site-packages/filestore/core.py in get_datum(col, eid, datum_cache, get_spec_handler, logger)\r\n     36                         \"datum cache can hold.\")\r\n     37\r\n---> 38     handler = get_spec_handler(datum['resource'])\r\n     39     return handler(**datum['datum_kwargs'])\r\n     40\r\n\r\n/opt/conda_envs/analysis/lib/python3.4/site-packages/filestore/fs.py in get_spec_handler(self, resource)\r\n    205\r\n    206         spec = resource['spec']\r\n--> 207         handler = self.handler_reg[spec]\r\n    208         key = (str(resource['_id']), handler.__name__)\r\n    209\r\n\r\n/opt/conda_envs/analysis/lib/python3.4/collections/__init__.py in __getitem__(self, key)\r\n    803             except KeyError:\r\n    804                 pass\r\n--> 805         return self.__missing__(key)            # support subclasses that define __missing__\r\n    806\r\n    807     def get(self, key, default=None):\r\n\r\n/opt/conda_envs/analysis/lib/python3.4/collections/__init__.py in __missing__(self, key)\r\n    795\r\n    796     def __missing__(self, key):\r\n--> 797         raise KeyError(key)\r\n    798\r\n    799     def __getitem__(self, key):\r\n\r\nKeyError: 'AD_EIGER'\r\n```"},"comment":{"url":"https://api.github.com/repos/NSLS-II/suitcase/issues/comments/202993168","html_url":"https://github.com/NSLS-II/suitcase/issues/9#issuecomment-202993168","issue_url":"https://api.github.com/repos/NSLS-II/suitcase/issues/9","id":202993168,"user":{"login":"ericdill","id":6223243,"avatar_url":"https://avatars.githubusercontent.com/u/6223243?v=3","gravatar_id":"","url":"https://api.github.com/users/ericdill","html_url":"https://github.com/ericdill","followers_url":"https://api.github.com/users/ericdill/followers","following_url":"https://api.github.com/users/ericdill/following{/other_user}","gists_url":"https://api.github.com/users/ericdill/gists{/gist_id}","starred_url":"https://api.github.com/users/ericdill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericdill/subscriptions","organizations_url":"https://api.github.com/users/ericdill/orgs","repos_url":"https://api.github.com/users/ericdill/repos","events_url":"https://api.github.com/users/ericdill/events{/privacy}","received_events_url":"https://api.github.com/users/ericdill/received_events","type":"User","site_admin":false},"created_at":"2016-03-29T16:48:39Z","updated_at":"2016-03-29T16:48:39Z","body":"Haha yeah, one print would be good :-D\r\n\r\nI use the following pattern:\r\n\r\n```python\r\ntry:\r\n    something_that_raises()\r\nexcept SomeException as e:\r\n    pprint(helpful_information)\r\n    raise\r\n```"}}