Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

Commit

Permalink
fix: fix quality failures
Browse files Browse the repository at this point in the history
  • Loading branch information
UsamaSadiq committed Feb 15, 2023
1 parent 28d5623 commit bb7c76e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
6 changes: 2 additions & 4 deletions bok_choy/page_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@ def _inner(*args, **kwargs):
except WebDriverException:
LOGGER.warning('Exception ignored during retry loop:', exc_info=True)
return False
else:
return return_val
return return_val

return _inner

Expand Down Expand Up @@ -378,8 +377,7 @@ def validate_url(cls, url):
except ValueError:
LOGGER.warning("%s uses an invalid port", url)
return False
else:
return True
return True

def _verify_page(self):
"""
Expand Down
3 changes: 1 addition & 2 deletions bok_choy/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ def _inner(*args, **kwargs):
except WebDriverException:
LOGGER.warning('Exception ignored during retry loop:', exc_info=True)
return False, None
else:
return True, return_val
return True, return_val

return _inner

Expand Down
4 changes: 2 additions & 2 deletions pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
# SERIOUSLY.
#
# ------------------------------
# Generated by edx-lint version: 5.2.5
# Generated by edx-lint version: 5.3.1
# ------------------------------
[MASTER]
ignore =
Expand Down Expand Up @@ -355,4 +355,4 @@ int-import-graph =
[EXCEPTIONS]
overgeneral-exceptions = Exception

# e3bafd25a90ab7863b444b584856d5c845c18a2e
# ddaa3a5fe31d20586829df2e5c79b6463b8ff485

0 comments on commit bb7c76e

Please sign in to comment.