Fix flake8 W293 and W391

This commit is contained in:
Andy Melnikov
2023-04-10 18:46:40 +02:00
parent 5a6e565c52
commit d12da33e55
5 changed files with 6 additions and 8 deletions

View File

@@ -15,7 +15,7 @@ def scrape_text(url):
# Most basic check if the URL is valid:
if not url.startswith('http'):
return "Error: Invalid URL"
# Restrict access to local files
if check_local_file_access(url):
return "Error: Access to local files is restricted"