Skip to content

Commit

Permalink
fix: change is_existing_ua_cache
Browse files Browse the repository at this point in the history
  • Loading branch information
iDLEWINK committed May 22, 2023
1 parent 1e6d79f commit 8a917d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "useragents_me_scraper"
version = "0.1.3"
version = "0.1.4"
authors = [
{ name="iDLEWINK", email="jak.uson11@yahoo.com" },
]
Expand Down
3 changes: 1 addition & 2 deletions src/useragents_me_scraper/useragents.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,9 @@ def _is_existing_ua_cache():

try:
f = open('ua_cache.json')
f.close()
except:
existing_flag = False
finally:
f.close()

return existing_flag

Expand Down

0 comments on commit 8a917d3

Please sign in to comment.