Skip to content

Commit

Permalink
Merge pull request #438 from Hari-Nagarajan/hotfix
Browse files Browse the repository at this point in the history
Update amazon.py
  • Loading branch information
DakkJaniels authored Dec 23, 2020
2 parents 2667c30 + 2801ec1 commit b5ff968
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions stores/amazon.py
Original file line number Diff line number Diff line change
Expand Up @@ -1116,9 +1116,12 @@ def create_driver(self):
"Default",
"Preferences",
)
with fileinput.FileInput(path_to_prefs, inplace=True) as file:
for line in file:
print(line.replace("Crashed", "none"), end="")
try:
with fileinput.FileInput(path_to_prefs, inplace=True) as file:
for line in file:
print(line.replace("Crashed", "none"), end="")
except FileNotFoundError:
pass
try:
self.driver = webdriver.Chrome(executable_path=binary_path, options=options)
self.wait = WebDriverWait(self.driver, 10)
Expand Down
2 changes: 1 addition & 1 deletion utils/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

LATEST_URL = "https://api.github.com/repos/Hari-Nagarajan/fairgame/releases/latest"

version = "0.5.0"
version = "0.5.2"


def check_version():
Expand Down

0 comments on commit b5ff968

Please sign in to comment.