fix fix edge case

fixes bug caused in c275e3e
This commit is contained in:
TheTechRobo 2021-05-27 15:59:57 -04:00
parent 8e1e188214
commit dbe0c3dd86
1 changed files with 1 additions and 0 deletions

View File

@ -10,6 +10,7 @@ class URL:
def GetURL(self, urlRange=(1,10)):
self.url = ""
while self.url in list(self.urls) or self.url == "":
self.url = ""
for i in range(0,random.randint(*urlRange)):
self.url += chr(random.choice((random.randint(65,90), random.randint(97,122), random.randint(48,57)))) #first one is uppercase; 2nd is lowercase; 3rd: numbers
def GetConfig(self):