Merge branch 'multi' of https://github.com/Jxck-S/plane-notify into multi
This commit is contained in:
commit
03a1ba7a6f
|
@ -21,7 +21,7 @@ def pullADSBX(planes):
|
||||||
data = response.text
|
data = response.text
|
||||||
data = json.loads(data)
|
data = json.loads(data)
|
||||||
failed = False
|
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("ADSBX Connection Error")
|
||||||
print(error_message)
|
print(error_message)
|
||||||
failed = True
|
failed = True
|
||||||
|
|
2
defSS.py
2
defSS.py
|
@ -9,7 +9,7 @@ from selenium import webdriver
|
||||||
import time
|
import time
|
||||||
def getSS(icao):
|
def getSS(icao):
|
||||||
chrome_options = webdriver.ChromeOptions()
|
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('window-size=800,800')
|
||||||
#chrome_options.add_argument('--no-sandbox') # required when running as root user. otherwise you would get no sandbox errors.
|
#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)
|
browser = webdriver.Chrome(options=chrome_options)
|
||||||
|
|
Loading…
Reference in New Issue