Skip to content

Commit

Permalink
Don't attempt to open output of 'pep next' in browser
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Oct 12, 2023
1 parent eb1cf0f commit 589bda3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pepotron/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def open_pep(
) -> str:
"""Open this PEP in the browser"""
url = pep_url(search, base_url, pr)
if not dry_run:
if not dry_run and "Next available PEP: " not in url:
import webbrowser

webbrowser.open_new_tab(url)
Expand Down

0 comments on commit 589bda3

Please sign in to comment.