Bug#733469: Deleting save also exits
Jens Rottmann
JensRt at T-Online.de
Thu Feb 10 11:26:03 GMT 2022
If you have 2 or more saves, deleting one of them (with Shift-Del in the "Resume quest" menu) works fine. But deleting the _last_ save exits the program with two exceptions:
Traceback (most recent call last):
File "/usr/share/games/ardentryst/ardentryst.py", line 4722, in <module>
main()
File "/usr/share/games/ardentryst/ardentryst.py", line 4416, in main
Game = Game_SlotMenu()
File "/usr/share/games/ardentryst/ardentryst.py", line 1582, in Game_SlotMenu
gameobj = pickle.load(open(os.path.join(SAVEDIRECTORY, "Saves", gamelist[cursor]),"rb"))
IndexError: list index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/share/games/ardentryst/ardentryst.py", line 4726, in <module>
handleException(e)
File "/usr/share/games/ardentryst/ardentryst.py", line 685, in handleException
open("bugreport.txt", "w").write(open(os.path.join(SAVEDIRECTORY, "log.txt"), "r").read())
PermissionError: [Errno 13] Permission denied: 'bugreport.txt'
I'm adding this info here, because I suspect the 2 issues with renaming/deleting saves might have a common cause? (Note that both have been present long before the Python3 port, but continue to exist afterwards.)
More information about the Pkg-games-devel
mailing list