diff --git a/lib/diazo/rules.py b/lib/diazo/rules.py index 9200839..e4a0992 100644 --- a/lib/diazo/rules.py +++ b/lib/diazo/rules.py @@ -123,7 +123,7 @@ def expand_themes(rules_doc, parser=None, absolute_prefix=None, url.startswith(('ftp://', 'http://', 'https://')): raise ValueError("Supplied theme '%s', " "but network access denied." % url) - if '://' in url: + if url.startswith(('ftp://', 'ftps://', 'http://', 'https://')): theme = urlopen(url) else: theme = url