sentrycli
sentrycli copied to clipboard
KeyError: Entries
Firstly thanks for this amazing little utility.
When I run this command:
sentrycli group 1079208708.json -o
I get this error:
Traceback (most recent call last):
File "/my/path/Python/2.7/bin/sentrycli", line 9, in <module>
load_entry_point('sentrycli==1.5.0', 'console_scripts', 'sentrycli')()
File "/my/path/Python/2.7/lib/python/site-packages/sentrycli/main.py", line 17, in main
argh.dispatch(parser)
File "/Library/Python/2.7/site-packages/argh/dispatching.py", line 174, in dispatch
for line in lines:
File "/Library/Python/2.7/site-packages/argh/dispatching.py", line 277, in _execute_command
for line in result:
File "/Library/Python/2.7/site-packages/argh/dispatching.py", line 260, in _call
result = function(*positional, **keywords)
File "/my/path/Python/2.7/lib/python/site-packages/sentrycli/group.py", line 81, in group
print_options(events)
File "/my/path/Python/2.7/lib/python/site-packages/sentrycli/group.py", line 48, in print_options
headers = get_keys('headers', events)
File "/my/path/Python/2.7/lib/python/site-packages/sentrycli/group.py", line 32, in get_keys
res = getattr(event, prop)
File "/Library/Python/2.7/site-packages/cached_property.py", line 26, in __get__
value = obj.__dict__[self.func.__name__] = self.func(obj)
File "/my/path/Python/2.7/lib/python/site-packages/sentrycli/event.py", line 30, in headers
for entry in self:
File "/my/path/Python/2.7/lib/python/site-packages/sentrycli/event.py", line 12, in __iter__
return iter(self.raw['entries'])
KeyError: 'entries'