diff options
Diffstat (limited to 'python')
| -rw-r--r-- | python/download_markit_quotes.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/python/download_markit_quotes.py b/python/download_markit_quotes.py index 56ecc902..0a64c14b 100644 --- a/python/download_markit_quotes.py +++ b/python/download_markit_quotes.py @@ -11,6 +11,8 @@ import time, os from config import markit_login, markit_password from insert_tranche_quotes import insert_quotes import logging +import sys + logging.basicConfig(filename='/home/share/CorpCDOs/logs/download_tranche_quotes.log', level=logging.INFO, format='%(asctime)s %(message)s') @@ -45,6 +47,8 @@ try: link.click() except TimeoutException: logging.info("timeout before being able to click") + driver.close() + sys.exit() total_wait = 0 while (not os.path.exists("/tmp/Quotes.csv") or total_wait==10): |
