fixed database_caller bug
This commit is contained in:
parent
4b6fa1e95c
commit
abf823a2c2
@ -532,6 +532,7 @@ def updateAll(api_key, weather_key):
|
|||||||
updateForex(api_key)
|
updateForex(api_key)
|
||||||
updateNews(api_key)
|
updateNews(api_key)
|
||||||
updateSports(api_key)
|
updateSports(api_key)
|
||||||
|
if weather_key:
|
||||||
updateWeather(weather_key)
|
updateWeather(weather_key)
|
||||||
|
|
||||||
|
|
||||||
@ -569,7 +570,7 @@ if __name__ == '__main__':
|
|||||||
try:
|
try:
|
||||||
weather_key = api_keys[1].strip()
|
weather_key = api_keys[1].strip()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
weather_key = False
|
||||||
exc_type, exc_obj, exc_tb = sys.exc_info()
|
exc_type, exc_obj, exc_tb = sys.exc_info()
|
||||||
fname = os.path.split(exc_tb.tb_frame.f_code.co_filename)[1]
|
fname = os.path.split(exc_tb.tb_frame.f_code.co_filename)[1]
|
||||||
logf.write(str(e))
|
logf.write(str(e))
|
||||||
|
Loading…
Reference in New Issue
Block a user