Skip to content

Commit

Permalink
core/response.py: avoid _endpoint_from_url if url is empty (#632)
Browse files Browse the repository at this point in the history
  • Loading branch information
elukey authored Aug 7, 2024
1 parent d62cb87 commit ad8bc8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pynetbox/core/response.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ def __init__(self, values, api, endpoint):
self.default_ret = Record
self.endpoint = (
self._endpoint_from_url(values["url"])
if values and "url" in values
if values and "url" in values and values["url"]
else endpoint
)
if values:
Expand Down

0 comments on commit ad8bc8b

Please sign in to comment.