You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
########################################
Traceback (most recent call last):
File "C:\Users\User.p2\pool\plugins\org.python.pydev.core_10.0.1.202210281537\pysrc\pydevd.py", line 3477, in
main()
File "C:\Users\User.p2\pool\plugins\org.python.pydev.core_10.0.1.202210281537\pysrc\pydevd.py", line 3470, in main
globals = debugger.run(setup['file'], None, None, is_module)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User.p2\pool\plugins\org.python.pydev.core_10.0.1.202210281537\pysrc\pydevd.py", line 2507, in run
return self._exec(is_module, entry_point_fn, module_name, file, globals, locals)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User.p2\pool\plugins\org.python.pydev.core_10.0.1.202210281537\pysrc\pydevd.py", line 2514, in _exec
globals = pydevd_runpy.run_path(file, globals, 'main')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User.p2\pool\plugins\org.python.pydev.core_10.0.1.202210281537\pysrc_pydevd_bundle\pydevd_runpy.py", line 321, in run_path
return _run_module_code(code, init_globals, run_name,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User.p2\pool\plugins\org.python.pydev.core_10.0.1.202210281537\pysrc_pydevd_bundle\pydevd_runpy.py", line 135, in _run_module_code
_run_code(code, mod_globals, init_globals,
File "C:\Users\User.p2\pool\plugins\org.python.pydev.core_10.0.1.202210281537\pysrc_pydevd_bundle\pydevd_runpy.py", line 124, in _run_code
exec(code, run_globals)
File "U:\Projekte\Raspberry PI\Workspace\WallboxController_Python\src\skoda_connect_example_1_1_26.py", line 293, in
loop.run_until_complete(main())
File "C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 650, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "U:\Projekte\Raspberry PI\Workspace\WallboxController_Python\src\skoda_connect_example_1_1_26.py", line 142, in main
dashboard = vehicle.dashboard(mutable=True, miles=MILES)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "U:\Projekte\Raspberry PI\Workspace\Github\scoutice_skodaconnect\skodaconnect\vehicle.py", line 1197, in dashboard
self._dashboard = Dashboard(self, **config)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "U:\Projekte\Raspberry PI\Workspace\Github\scoutice_skodaconnect\skodaconnect\dashboard.py", line 1422, in init
self.instruments = [
^
File "U:\Projekte\Raspberry PI\Workspace\Github\scoutice_skodaconnect\skodaconnect\dashboard.py", line 1425, in
if instrument.setup(vehicle, **config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "U:\Projekte\Raspberry PI\Workspace\Github\scoutice_skodaconnect\skodaconnect\dashboard.py", line 31, in setup
if not self.is_supported:
^^^^^^^^^^^^^^^^^
File "U:\Projekte\Raspberry PI\Workspace\Github\scoutice_skodaconnect\skodaconnect\dashboard.py", line 68, in is_supported
if hasattr(self.vehicle, supported):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "U:\Projekte\Raspberry PI\Workspace\Github\scoutice_skodaconnect\skodaconnect\vehicle.py", line 1374, in is_parking_light_supported
if 'overallStatus' in self.attrs.get('vehicle_remote', {}).get('lights', {}):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: argument of type 'NoneType' is not iterable
The text was updated successfully, but these errors were encountered:
the whole section shall be surrounded by try-catch. if an exception is thrown, False shall be returned.
Following properties are corrupt and break the script, if the skoda-server returns invalid data:
is_parking_light_supported
is_hood_closed_supported
or - probably better, in the setup-method of the dashboard.
just to be sure the impact of the exception is as small as possible and the other sensors can work properly without breaking the whole dashboard
See attached File
skodaconnect_exception.txt
########################################
Setting up dashboard
########################################
Traceback (most recent call last):
File "C:\Users\User.p2\pool\plugins\org.python.pydev.core_10.0.1.202210281537\pysrc\pydevd.py", line 3477, in
main()
File "C:\Users\User.p2\pool\plugins\org.python.pydev.core_10.0.1.202210281537\pysrc\pydevd.py", line 3470, in main
globals = debugger.run(setup['file'], None, None, is_module)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User.p2\pool\plugins\org.python.pydev.core_10.0.1.202210281537\pysrc\pydevd.py", line 2507, in run
return self._exec(is_module, entry_point_fn, module_name, file, globals, locals)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User.p2\pool\plugins\org.python.pydev.core_10.0.1.202210281537\pysrc\pydevd.py", line 2514, in _exec
globals = pydevd_runpy.run_path(file, globals, 'main')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User.p2\pool\plugins\org.python.pydev.core_10.0.1.202210281537\pysrc_pydevd_bundle\pydevd_runpy.py", line 321, in run_path
return _run_module_code(code, init_globals, run_name,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User.p2\pool\plugins\org.python.pydev.core_10.0.1.202210281537\pysrc_pydevd_bundle\pydevd_runpy.py", line 135, in _run_module_code
_run_code(code, mod_globals, init_globals,
File "C:\Users\User.p2\pool\plugins\org.python.pydev.core_10.0.1.202210281537\pysrc_pydevd_bundle\pydevd_runpy.py", line 124, in _run_code
exec(code, run_globals)
File "U:\Projekte\Raspberry PI\Workspace\WallboxController_Python\src\skoda_connect_example_1_1_26.py", line 293, in
loop.run_until_complete(main())
File "C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 650, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "U:\Projekte\Raspberry PI\Workspace\WallboxController_Python\src\skoda_connect_example_1_1_26.py", line 142, in main
dashboard = vehicle.dashboard(mutable=True, miles=MILES)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "U:\Projekte\Raspberry PI\Workspace\Github\scoutice_skodaconnect\skodaconnect\vehicle.py", line 1197, in dashboard
self._dashboard = Dashboard(self, **config)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "U:\Projekte\Raspberry PI\Workspace\Github\scoutice_skodaconnect\skodaconnect\dashboard.py", line 1422, in init
self.instruments = [
^
File "U:\Projekte\Raspberry PI\Workspace\Github\scoutice_skodaconnect\skodaconnect\dashboard.py", line 1425, in
if instrument.setup(vehicle, **config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "U:\Projekte\Raspberry PI\Workspace\Github\scoutice_skodaconnect\skodaconnect\dashboard.py", line 31, in setup
if not self.is_supported:
^^^^^^^^^^^^^^^^^
File "U:\Projekte\Raspberry PI\Workspace\Github\scoutice_skodaconnect\skodaconnect\dashboard.py", line 68, in is_supported
if hasattr(self.vehicle, supported):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "U:\Projekte\Raspberry PI\Workspace\Github\scoutice_skodaconnect\skodaconnect\vehicle.py", line 1374, in is_parking_light_supported
if 'overallStatus' in self.attrs.get('vehicle_remote', {}).get('lights', {}):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: argument of type 'NoneType' is not iterable
The text was updated successfully, but these errors were encountered: