fix: Referer cannot be None

pull/81/head
Raphaël Vinot 2020-07-20 23:04:11 +02:00
parent 1c5f4f5710
commit f17acbce60
1 changed files with 1 additions and 1 deletions

View File

@ -609,7 +609,7 @@ class Lookyloo():
def scrape(self, url: str, cookies_pseudofile: Optional[BufferedIOBase]=None,
depth: int=1, listing: bool=True, user_agent: Optional[str]=None,
referer: Optional[str]=None, perma_uuid: str=None, os: str=None,
referer: str='', perma_uuid: str=None, os: str=None,
browser: str=None) -> Union[bool, str]:
url = url.strip()
url = refang(url)