Skip to content

Commit

Permalink
Fix app not running when using --no-browser flag (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
volker-fr authored Jan 13, 2025
1 parent c8e6bd0 commit 48c59e3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions slackviewer/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,9 @@ def channel_name():
webbrowser.open("file:///{}/index.html"
.format(os.path.abspath(output_dir)))

elif not no_browser and not test:
webbrowser.open("http://{}:{}".format(ip, port))
elif not test:
if not no_browser:
webbrowser.open("http://{}:{}".format(ip, port))
app.run(
host=ip,
port=port
Expand Down

0 comments on commit 48c59e3

Please sign in to comment.