Skip to content

Commit

Permalink
avoid crashing if mpim directory does not exist in the export (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
rusq authored Oct 3, 2022
1 parent 637426d commit d33d2a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slackviewer/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def dm_id(id):

@app.route("/mpim/<name>/")
def mpim_name(name):
messages = flask._app_ctx_stack.mpims[name]
messages = flask._app_ctx_stack.mpims.get(name, list())
channels = list(flask._app_ctx_stack.channels.keys())
groups = list(flask._app_ctx_stack.groups.keys())
dm_users = list(flask._app_ctx_stack.dm_users)
Expand Down

0 comments on commit d33d2a9

Please sign in to comment.