Commit 01a07f7e authored by Nico Alt's avatar Nico Alt

Make method public

parent 6d8e17ec
......@@ -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)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment