Skip to content

notify: Handle unparseable version

Michal Hrusecky requested to merge version-fix into master

Reported on our forum:

Mar  7 11:11:29 turris updater-supervisor: Traceback (most recent call last):
   File "/usr/bin/updater-supervisor", line 33, in <module>
    sys.exit(load_entry_point('svupdater==1.5.6', 'console_scripts', 'updater-supervisor')())
   File "/usr/lib/python3.10/site-packages/svupdater/__main__.py", line 109, in main
   File "/usr/lib/python3.10/site-packages/svupdater/_supervisor.py", line 146, in run
   File "/usr/lib/python3.10/site-packages/svupdater/notify.py", line 77, in changes
   File "/usr/lib/python3.10/site-packages/packaging/version.py", line 54, in parse
   File "/usr/lib/python3.10/site-packages/packaging/version.py", line 200, in __init__
 packaging.version.InvalidVersion: Invalid version: '5.15.148-1-ac3950207e90faa9d8a5b1c624fa87c0'

Merge request reports