aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'youtube/util.py')
-rw-r--r--youtube/util.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/youtube/util.py b/youtube/util.py
index 474e7b5..9023b98 100644
--- a/youtube/util.py
+++ b/youtube/util.py
@@ -310,6 +310,8 @@ def uppercase_escape(s):
lambda m: chr(int(m.group(1), base=16)), s)
def prefix_url(url):
+ if url is None:
+ return None
url = url.lstrip('/') # some urls have // before them, which has a special meaning
return '/' + url