Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
WillCaton2350 authored Oct 3, 2024
1 parent 741e9af commit fce47a7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Python-Rumble-Bot-Final-Bot/bot/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,8 @@ def start_browser(self):
except NoSuchElementException as err:
if err:
logging.error(f'NoSuchElementException: {err}')

except HTTPError as err:
if err.code != 200:
logging.error(f"HTTP error occurred: {err}")
except WebDriverException as err:
logging.error(err.msg)


def close_browser(self):
Expand Down

0 comments on commit fce47a7

Please sign in to comment.