Commit c92a8375 authored by Marco Marinello's avatar Marco Marinello

Prevent failure on none strings

parent 2e0ddc92
......@@ -30,6 +30,8 @@ class Command(BaseCommand):
def is_valid_fqdn_or_ip(self, s):
if s == None:
return False
if s.startswith("http://"):
s = s[7:]
elif s.startswith("https://"):
......
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