root@dev:/var/home/abeveridge/slack-history# slack-export-viewer -p 54321 -z slack-export-26.04.2016-14.47.zip
slack-export-26.04.2016-14.47.zip extracting to /tmp/_slackviewer/ffcc65ff4a2926970c0e5c95d9acdd973019e106...
slack-export-26.04.2016-14.47.zip extracted to /tmp/_slackviewer/ffcc65ff4a2926970c0e5c95d9acdd973019e106.
* Running on http://localhost:54321/ (Press CTRL+C to quit)
127.0.0.1 - - [26/Apr/2016 15:11:11] "GET / HTTP/1.1" 500 -
Error on request:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/werkzeug/serving.py", line 193, in run_wsgi
execute(self.server.app)
File "/usr/local/lib/python2.7/dist-packages/werkzeug/serving.py", line 181, in execute
application_iter = app(environ, start_response)
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1836, in __call__
return self.wsgi_app(environ, start_response)
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1820, in wsgi_app
response = self.make_response(self.handle_exception(e))
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1403, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1817, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1477, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1381, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1475, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1461, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/usr/local/lib/python2.7/dist-packages/slackviewer/app.py", line 24, in index
return channel_name("general")
File "/usr/local/lib/python2.7/dist-packages/slackviewer/app.py", line 17, in channel_name
channels=sorted(channels))
File "/usr/local/lib/python2.7/dist-packages/flask/templating.py", line 128, in render_template
context, ctx.app)
File "/usr/local/lib/python2.7/dist-packages/flask/templating.py", line 110, in _render
rv = template.render(context)
File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 989, in render
return self.environment.handle_exception(exc_info, True)
File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 754, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python2.7/dist-packages/slackviewer/templates/viewer.html", line 34, in top-level template code
<div class="msg">{{ message.msg|safe }}</div>
File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 408, in getattr
return getattr(obj, attribute)
File "/usr/local/lib/python2.7/dist-packages/slackviewer/message.py", line 52, in msg
text = self._render_text(text)
File "/usr/local/lib/python2.7/dist-packages/slackviewer/message.py", line 105, in _render_text
message = re.sub(r"<#C0\w+>", self._sub_channel_ref, message)
File "/usr/lib/python2.7/re.py", line 151, in sub
return _compile(pattern, flags).sub(repl, string, count)
File "/usr/local/lib/python2.7/dist-packages/slackviewer/message.py", line 183, in _sub_channel_ref
channel_name = self.__CHANNEL_DATA[channel_id]["name"]
KeyError: u'C0VGDB8P4'