Skip to content

Commit

Permalink
Sort praw.exceptions.InvalidURL.__init__ arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
LilSpazJoekp committed Jan 15, 2022
1 parent 61a4a71 commit 35dd9e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion praw/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,8 @@ def __init__(self):
class InvalidURL(ClientException):
"""Indicate exceptions where an invalid URL is entered."""

def __init__(self, url: str, message: str = "Invalid URL: {}"):
@_deprecate_args("url", "message")
def __init__(self, url: str, *, message: str = "Invalid URL: {}"):
"""Initialize an :class:`.InvalidURL` instance.
:param url: The invalid URL.
Expand Down

0 comments on commit 35dd9e0

Please sign in to comment.