diff --git a/V6.py b/V6.py index d1598be..c4264bd 100755 --- a/V6.py +++ b/V6.py @@ -831,34 +831,52 @@ def very_custom_start(json): g._mail = cred[0] g._password = cred[1] for j in ["unban", "tout", "pc", "mobile", "log_points"]: - if str(i) in json[j]: - start = True - + try : + if str(i) in json[j]: + start = True + except KeyError : + pass if start: driver = firefox_driver() - if str(i) in json["unban"]: - pwd_login(driver) # TODO : define only the first part of login - else : - login(driver) - - if str(i) in json["tout"]: - daily_routine(True) + try : + if str(i) in json["unban"]: + pwd_login(driver) # TODO : define only the first part of login + print("waiting 1000 secs") + sleep(1000) + else : + login(driver) + except KeyError : + pass + try : + if str(i) in json["tout"]: + daily_routine(True) + except KeyError : + print("none is set to \"tout\"") else : - if str(i) in json["daily"]: - try: - bing_pc_search() - except Exception as e: - log_error(e) - if str(i) in json["pc"]: - try: - bing_pc_search() - except Exception as e: - log_error(e) - if str(i) in json["mobile"]: - try: - bing_mobile_search() - except Exception as e: - log_error(e) + try : + if str(i) in json["daily"]: + try: + bing_pc_search() + except Exception as e: + log_error(e) + except KeyError : + print("none is set to \"daily\"") + try : + if str(i) in json["pc"]: + try: + bing_pc_search() + except Exception as e: + log_error(e) + except KeyError : + print("none is set to \"pc\"") + try : + if str(i) in json["mobile"]: + try: + bing_mobile_search() + except Exception as e: + log_error(e) + except KeyError : + print("none is set to \"mobile\"") try: log_points(g._mail) except Exception as e: diff --git a/version b/version index 3d3f369..53275d3 100644 --- a/version +++ b/version @@ -1 +1 @@ -v6.6.32 +v6.6.33