api: fix error when base_url not given

This commit is contained in:
Luna 2019-06-06 14:12:38 -03:00
parent f03bc7ec26
commit 0559d6accd

View file

@ -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)