Skip to content
Snippets Groups Projects
Commit 01a07f7e authored by Nico's avatar Nico
Browse files

Make method public

parent 6d8e17ec
No related branches found
No related tags found
No related merge requests found
......@@ -62,7 +62,7 @@ class Api:
while self.is_running():
try:
sleep(0.1)
print(urlopen(self.constants._get_base_url()).getcode())
print(urlopen(self.constants.get_base_url()).getcode())
except HTTPError as e:
if(e.code == 404):
self._load_auth_token()
......
......@@ -18,5 +18,5 @@ class Constants:
def get_auth_token(self):
return join(Path.home(), self._BRIAR_DIR, self._BRIAR_AUTH_TOKEN)
def _get_base_url(self):
def get_base_url(self):
return urljoin(self._HOST, self._VERSION_SUFFIX)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment