fixed database_caller bug
This commit is contained in:
parent
4b6fa1e95c
commit
abf823a2c2
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user