cyberrumor / ammo

Almost Manual Mod Organizer - Linux MO for Bethesda Games
GNU General Public License v2.0
25 stars 6 forks source link

IndexError when nonexist download is ordered to be deleted #12

Closed RoseHobgoblin closed 1 year ago

RoseHobgoblin commented 1 year ago

used the wrong number when deleting a mod from downloads, got this Skyrim Special Edition >_: delete download 9 Traceback (most recent call last): File "/home/jlak/Downloads/ammo/ammo/ammo.py", line 76, in <module> sys.exit(ui.repl()) File "/home/jlak/Downloads/ammo/ammo/ui.py", line 407, in repl if not (ret := command["func"](*args)): File "/home/jlak/Downloads/ammo/ammo/controller.py", line 565, in delete name = self.downloads[index].name IndexError: list index out of range

cyberrumor commented 1 year ago

Nice find, thank you for reporting :)

cyberrumor commented 1 year ago

Fixed in commit 455418e537815ef10d0027c06f620a6de14d4c41