Skip to content

Commit

Permalink
fix(node): stop appending /v3 if done already (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
ooliver1 committed Feb 16, 2023
1 parent 25ff725 commit 00d547c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mafic/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,12 @@ async def _check_version(self) -> None:
Some features may not work.
"""

if self._rest_uri.path.endswith("/v3") or self._ws_uri.path.endswith(
"/websocket"
):
# This process was already ran likely.
return

if self.__session is None:
self.__session = await self._create_session()

Expand Down

0 comments on commit 00d547c

Please sign in to comment.