Commit 052e64fd authored by Pierre Dittgen's avatar Pierre Dittgen

Fix crash if SHIELDS_IO_BASE_URL is undefined

parent 02607e8f
......@@ -26,5 +26,5 @@ else:
SHIELDS_IO_BASE_URL = os.environ.get("SHIELDS_IO_BASE_URL") or None
if not SHIELDS_IO_BASE_URL.endswith('/'):
if SHIELDS_IO_BASE_URL and not SHIELDS_IO_BASE_URL.endswith('/'):
SHIELDS_IO_BASE_URL += '/'
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment