Skip to content

Commit bec0700

Browse files
authored
Merge pull request #35 from banyansecurity/tarun/issue-15
ApiClient - normalize url when reading from conf
2 parents 8089778 + c281a9e commit bec0700

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

banyan/api/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def _read_config_file(self):
124124
try:
125125
cp = configparser.ConfigParser(CONFIG)
126126
cp.read(conf_path)
127-
self._api_url = cp.get('banyan', 'api_url')
127+
self._api_url = self._normalize_url(cp.get('banyan', 'api_url'))
128128
self._refresh_token = cp.get('banyan', 'refresh_token')
129129
except configparser.Error:
130130
pass

0 commit comments

Comments
 (0)