mirror of
https://github.com/Code-For-Groningen/temmies.git
synced 2025-03-15 07:10:15 +01:00
More "error handling"
This commit is contained in:
parent
03a1fd1b33
commit
0ed744dff8
@ -5,7 +5,7 @@ Main class for the Themis API using the new JSON endpoints.
|
|||||||
from requests import Session
|
from requests import Session
|
||||||
from selenium import webdriver
|
from selenium import webdriver
|
||||||
from selenium.webdriver.common.by import By
|
from selenium.webdriver.common.by import By
|
||||||
from selenium.common.exceptions import NoSuchElementException
|
from selenium.common.exceptions import NoSuchElementException, StaleElementReferenceException
|
||||||
from json import dumps
|
from json import dumps
|
||||||
from .year import Year
|
from .year import Year
|
||||||
import getpass
|
import getpass
|
||||||
@ -114,6 +114,8 @@ class Themis:
|
|||||||
except NoSuchElementException:
|
except NoSuchElementException:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
except StaleElementReferenceException:
|
||||||
|
pass
|
||||||
|
|
||||||
# destroy the password from memory (security)
|
# destroy the password from memory (security)
|
||||||
self.password = "I-HAVE-BEEN-REMOVED"
|
self.password = "I-HAVE-BEEN-REMOVED"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user