Skip to content

Commit

Permalink
Incorrect file not support error fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
0vj committed May 11, 2021
1 parent 213f854 commit 7413662
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions fbl/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,10 @@ def main():
f = open(file_location, 'r')
f.close()
#if txt family files
for file_format in [".txt", ".htm", ".html", ".md"]:
if file_location.endswith(file_format):
bad_urls = find_bad_urls(find_urls(txtfamily_extract_text(file_location)))
if file_location.endswith((".txt", ".htm", ".html", ".md")):
bad_urls = find_bad_urls(find_urls(txtfamily_extract_text(file_location)))

if file_location.endswith(".pdf"):
elif file_location.endswith(".pdf"):
bad_urls = find_bad_urls(find_urls(pdf_extract_text(file_location)))

elif file_location.endswith(".docx"):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="fbl",
version="0.8.5",
version="0.8.6",
author="Amirmahdi Tafreshi",
install_requires=["certifi==2020.12.5",
"chardet==4.0.0",
Expand Down

0 comments on commit 7413662

Please sign in to comment.