From 75b12dfb8675143bd6879c503ba5ba85495680d5 Mon Sep 17 00:00:00 2001 From: j Date: Tue, 30 Apr 2019 18:44:33 +0200 Subject: [PATCH] normalize api to end with / --- ox/api.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ox/api.py b/ox/api.py index 042d0be..51742c2 100644 --- a/ox/api.py +++ b/ox/api.py @@ -227,6 +227,8 @@ def signin(url): url = 'https://%s/api/' % url else: site = url.split('/')[2] + if not url.endswith('/'): + url += '/' api = API(url) update = False try: