fixed database_caller bug

This commit is contained in:
Your Name 2022-02-21 17:18:45 +00:00
parent 4b6fa1e95c
commit abf823a2c2

View File

@ -532,7 +532,8 @@ def updateAll(api_key, weather_key):
updateForex(api_key)
updateNews(api_key)
updateSports(api_key)
updateWeather(weather_key)
if weather_key:
updateWeather(weather_key)
if __name__ == '__main__':
@ -569,7 +570,7 @@ if __name__ == '__main__':
try:
weather_key = api_keys[1].strip()
except Exception as e:
weather_key = False
exc_type, exc_obj, exc_tb = sys.exc_info()
fname = os.path.split(exc_tb.tb_frame.f_code.co_filename)[1]
logf.write(str(e))