fix: Fix flake8 errors based on the flake8 command with a narrower definition of errors

This commit is contained in:
Drikus Roor
2023-04-12 22:12:25 +02:00
parent 8d0d4135ea
commit 1f837968ff
12 changed files with 9 additions and 15 deletions

View File

@@ -41,7 +41,7 @@ def scrape_text(url):
# Restrict access to local files
if check_local_file_access(url):
return "Error: Access to local files is restricted"
# Validate the input URL
if not is_valid_url(url):
# Sanitize the input URL