rcasteran / jarvis4se

JARVIS for Systems Engineers
https://regis-casteran.gitbook.io/jarvis4se/
MIT License
3 stars 1 forks source link

ValueError when reloading jarvis #67

Closed rcasteran closed 1 year ago

rcasteran commented 1 year ago

Impacted version jarvis4se version: 1.3.2

Describe the bug When reloading jarvis the following error occurs:

File ~\AppData\Local\Programs\Python\Python310\lib\site-packages\plantuml_adapter\util.py:72, in PlantUmlPicoServer.check_version(self)
     69 with urlopen(f"{github_url}") as rep:
     70     release_ver = str(rep.geturl())[-8:]
---> 72 if int(release_ver[0]) > int(jar_version[0]) or \
     73         int(release_ver[2:6]) > int(jar_version[2:6]) or \
     74         int(release_ver[7:len(release_ver)]) > int(jar_version[7:len(jar_version)]):
     75     print(f"WARNING:\nPlantUml .jar is not up-to-date, see latest release {github_url}")

ValueError: invalid literal for int() with base 10: '.'

To Reproduce Execute the following command:

%reload_ext jarvis

Expected behavior check_version() method shall not blocked Jarvis execution (prevent future error with try catch mechanism, for instance if Plantuml version naming convention changes)

Screenshots None

Desktop (please complete the following information):