Merge branch 'multi' of https://github.com/Jxck-S/plane-notify into multi

This commit is contained in:
Jack Sweeney 2020-10-10 18:54:00 +00:00 committed by GitHub
commit 03a1ba7a6f
3 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,7 @@ def pullADSBX(planes):
data = response.text
data = json.loads(data)
failed = False
except (requests.HTTPError, requests.ConnectionError, requests.Timeout, IncompleteRead) as error_message:
except (requests.HTTPError, requests.Timeout, IncompleteRead, ConnectionError, ConnectionResetError) as error_message:
print("ADSBX Connection Error")
print(error_message)
failed = True

View File

@ -9,7 +9,7 @@ from selenium import webdriver
import time
def getSS(icao):
chrome_options = webdriver.ChromeOptions()
chrome_options.add_argument('--headless')
chrome_options.headless = True
chrome_options.add_argument('window-size=800,800')
#chrome_options.add_argument('--no-sandbox') # required when running as root user. otherwise you would get no sandbox errors.
browser = webdriver.Chrome(options=chrome_options)

View File

@ -131,7 +131,7 @@ class Plane:
print ("Longitude: ", self.longitude)
print ("GEO Alitude Ft: ", self.geo_alt_ft)
print(Style.RESET_ALL)
#Set Check for inconsistancy in data
#Set Check for inconsistancy in data
if not self.last_recheck_needed:
#Recheck needed if feeding state changes
if self.feeding == False and self.last_feeding: