Skip to content

Commit

Permalink
Update firefox.py
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowmoose authored Dec 16, 2020
1 parent 425f5da commit 02de4f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyderman/drivers/firefox.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
def get_url(version='latest', _os=None, _os_bit=None):
urls = github.find_links('mozilla', 'geckodriver', version)
for u in urls:
target = '%s%s' % (_os, _os_bit) if _os is not 'mac' else 'macos'
target = '%s%s' % (_os, _os_bit) if _os != 'mac' else 'macos'
if target in u:
ver = re.search(r'v(\d{1,2}\.\d{1,2}\.\d{1,2})', u).group(1)
return 'geckodriver', u, ver
Expand Down

0 comments on commit 02de4f8

Please sign in to comment.