From e2d60fc9cf751f790ebf77b8d723fc0dc7cc4215 Mon Sep 17 00:00:00 2001 From: CHUN YU YAO Date: Tue, 10 Oct 2023 14:41:32 +0800 Subject: [PATCH] 2023-09-15, add content refresh condition for hkticketing. --- chrome_tixcraft.py | 5 ++++- config_launcher.py | 2 +- settings.py | 2 +- text_server.py | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/chrome_tixcraft.py b/chrome_tixcraft.py index b52e746..4859732 100644 --- a/chrome_tixcraft.py +++ b/chrome_tixcraft.py @@ -55,7 +55,7 @@ import webbrowser import chromedriver_autoinstaller -CONST_APP_VERSION = "MaxBot (2023.09.14)" +CONST_APP_VERSION = "MaxBot (2023.09.15)" CONST_MAXBOT_CONFIG_FILE = "settings.json" CONST_MAXBOT_LAST_URL_FILE = "MAXBOT_LAST_URL.txt" @@ -9237,6 +9237,9 @@ def hkticketing_content_refresh(driver, url, config_dict): , "Cannot generate SSPI context" , "System.Data.SqlClient.Sql" , "System.ComponentModel.Win32Exception" + , "Access Denied" + , "Your attempt to access the web site has been blocked by" + , "This requset was blocked by" ] if is_check_access_deined: domain_name = url.split('/')[2] diff --git a/config_launcher.py b/config_launcher.py index ff3eaf7..9d61786 100644 --- a/config_launcher.py +++ b/config_launcher.py @@ -22,7 +22,7 @@ import base64 import threading import subprocess -CONST_APP_VERSION = "MaxBot (2023.09.14)" +CONST_APP_VERSION = "MaxBot (2023.09.15)" CONST_MAXBOT_LAUNCHER_FILE = "config_launcher.json" CONST_MAXBOT_CONFIG_FILE = "settings.json" diff --git a/settings.py b/settings.py index 9a9a798..89b16ee 100644 --- a/settings.py +++ b/settings.py @@ -35,7 +35,7 @@ import ssl ssl._create_default_https_context = ssl._create_unverified_context -CONST_APP_VERSION = "MaxBot (2023.09.14)" +CONST_APP_VERSION = "MaxBot (2023.09.15)" CONST_MAXBOT_CONFIG_FILE = "settings.json" CONST_MAXBOT_LAST_URL_FILE = "MAXBOT_LAST_URL.txt" diff --git a/text_server.py b/text_server.py index 3331046..f0d3f1b 100644 --- a/text_server.py +++ b/text_server.py @@ -28,7 +28,7 @@ import asyncio import tornado from tornado.web import Application -CONST_APP_VERSION = "MaxBot (2023.09.14)" +CONST_APP_VERSION = "MaxBot (2023.09.15)" CONST_MAXBOT_QUESTION_FILE = "MAXBOT_QUESTION.txt"