mirror of
https://github.com/flobz/psa_car_controller.git
synced 2026-08-21 08:56:29 +00:00
fix: #820 ConnectionResetError
This commit is contained in:
@@ -67,9 +67,10 @@ class PSACarController(metaclass=Singleton):
|
||||
self.chc = ChargeControls.load_config(self.myp, name=self.args.charge_control)
|
||||
self.chc.init()
|
||||
self.myp.start_refresh_thread()
|
||||
except socket.timeout:
|
||||
logger.error("Can't connect to mqtt broker your are not connected to internet or PSA MQTT server is "
|
||||
"down !")
|
||||
except (socket.timeout, ConnectionResetError):
|
||||
logger.exception(
|
||||
"Can't connect to mqtt broker your are not connected to internet or PSA MQTT server is "
|
||||
"down !")
|
||||
except ConfigException:
|
||||
logger.error("start_remote_control failed redo otp config")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user