Skip to content

Commit

Permalink
Don't attempt to open output of 'pep next' in browser (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk authored Oct 12, 2023
2 parents eb1cf0f + 589bda3 commit c6cc760
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 c6cc760

Please sign in to comment.