api: fix error when base_url not given
This commit is contained in:
parent
f03bc7ec26
commit
0559d6accd
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ except ImportError: # pragma: nocover
|
||||||
|
|
||||||
|
|
||||||
def _make_url(configs, path):
|
def _make_url(configs, path):
|
||||||
base_url = configs.get('settings', 'base_url') or 'https://api.wakatime.com'
|
base_url = configs.get('settings', 'base_url', fallback=None) or 'https://api.wakatime.com'
|
||||||
return '%s%s' % (base_url, path)
|
return '%s%s' % (base_url, path)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue