Don't crash on NULL team information
authorMagnus Hagander <magnus@hagander.net>
Fri, 1 Jan 2016 16:47:18 +0000 (17:47 +0100)
committerMagnus Hagander <magnus@hagander.net>
Fri, 1 Jan 2016 16:47:18 +0000 (17:47 +0100)
planethtml.py

index 5939d1dfdd05ea1df1c16e6d0c710317b950051e..e031f0216428366e46108a5f32e520aa317da41f 100644 (file)
@@ -14,6 +14,7 @@ import urllib
 # Hmm. We only quote the ampersand here, since it's a HTML escape that
 # shows up in URLs quote often.
 def quoteurl(str):
+       if str is None: return None
        return str.replace('&','&amp;')
 
 class PlanetPost: