Skip to content

Commit

Permalink
Fix is_reachable method
Browse files Browse the repository at this point in the history
  • Loading branch information
anxuae committed Apr 24, 2022
1 parent a8937a6 commit ab536a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pibooth_google_photo.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from pibooth.utils import LOGGER


__version__ = "1.2.0"
__version__ = "1.2.1"

SECTION = 'GOOGLE'

Expand Down Expand Up @@ -131,7 +131,7 @@ def _get_authorized_session(self):
def is_reachable(self):
"""Check if Google Photos is reachable."""
try:
return requests.head('https://photos.google.com').status_code == 200
return requests.head('https://photos.google.com').status_code in (200, 302)
except requests.ConnectionError:
return False

Expand Down

0 comments on commit ab536a0

Please sign in to comment.