From 45f30ca9de034b6713b397b3ae7b2d306f7d7dcd Mon Sep 17 00:00:00 2001 From: Maks Snegov Date: Sun, 20 Jul 2014 13:30:22 +0400 Subject: [PATCH] fix: error with urls without scheme ('//ya.ru/index.html') --- nevernote.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nevernote.py b/nevernote.py index ebd07c1..a913a0a 100755 --- a/nevernote.py +++ b/nevernote.py @@ -119,6 +119,8 @@ def complete_url(url, base_url): up = urlparse(url) if not up.netloc: url = base_up.scheme + '://' + base_up.netloc + url + elif not up.scheme: + url = base_up.scheme + ':' + url return url