- 积分
- 572
- 金钱
- 530
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
高级会员
- 积分
- 572
- 金钱
- 530
- HASS币
- 0
|
发表于 2023-6-22 20:53:11
|
显示全部楼层
之前能成功运行,现在有点问题
2023/06/22 20:34:07 stdout ValueError: could not convert string to float: ''
2023/06/22 20:34:07 stdout thismonth_usage += float(electricity_value_list[m].text)
2023/06/22 20:34:07 stdout File "/app/data_fetcher.py", line 246, in _get_yearly_data
2023/06/22 20:34:07 stdout yearly_usage, yearly_charge, thismonth_usage, last_date = self._get_yearly_data(driver)
2023/06/22 20:34:07 stdout File "/app/data_fetcher.py", line 161, in _get_other_data
2023/06/22 20:34:07 stdout last_daily_usage_list, yearly_charge_list, yearly_usage_list, thismonth_usage_list, last_date_list = self._get_other_data(driver, user_id_list)
2023/06/22 20:34:07 stdout File "/app/data_fetcher.py", line 55, in _fetch
2023/06/22 20:34:07 stdout return self._fetch()
2023/06/22 20:34:07 stdout File "/app/data_fetcher.py", line 30, in fetch
2023/06/22 20:34:07 stdout raise e
2023/06/22 20:34:07 stdout File "/app/data_fetcher.py", line 33, in fetch
2023/06/22 20:34:07 stdout user_id_list, balance_list, balance_list_pay, balance_list_need_pay, last_daily_usage_list, yearly_charge_list, yearly_usage_list, thismonth_usage_list, last_date_list = data_fetcher.fetch()
2023/06/22 20:34:07 stdout File "./main.py", line 37, in run_task
2023/06/22 20:34:07 stdout Traceback (most recent call last):
2023/06/22 20:34:07 stdout 2023-06-22 20:34:07 [ERROR ] ---- state-refresh task failed, reason is could not convert string to float: ''
2023/06/22 20:34:07 stdout 2023-06-22 20:34:07 [INFO ] ---- thismonth: 06
2023/06/22 20:34:03 stdout 2023-06-22 20:34:03 [INFO ] ---- Get electricity charge balance for 01xxxxxxx2 successfully, balance is 588.67 CNY, is_pay 预计可用天数, need_pay is 0 CNY. |
|