Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pysnow/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ def __init__(
session=None,
):

if not (host or instance):
raise InvalidUsage("You must supply either 'instance' or 'host'")

if (host and instance) is not None:
raise InvalidUsage(
"Arguments 'instance' and 'host' are mutually exclusive, you cannot use both."
Expand All @@ -65,9 +68,6 @@ def __init__(
else:
raise InvalidUsage("Argument 'raise_on_empty' must be of type bool")

if not (host or instance):
raise InvalidUsage("You must supply either 'instance' or 'host'")

if not isinstance(self, pysnow.OAuthClient):
if not (user and password) and not session:
raise InvalidUsage(
Expand Down