Superb quality and spec AB-Com PULSe 4K SE. Crazy offer! Only £99! FREE UK DELIVERY! 4K UHD, Enigma 2, Multiboot 4 images & more!...
Superb quality and spec AB-Com PULSe 4K Rev II Twin Satellite tuner only £149! FREE UK DELIVERY! 4K UHD, Enigma 2, SATA HDD facility, Multiboot 4 images & more!...

[ViX_Misc] Subtle Trashcan bug when file not found in loop of found files

ahlstart

New member
Joined
Oct 30, 2022
Messages
1
Reaction score
0
Points
1
(Copied from github issue #796)
In enigma2/lib/python/Tools/Trashcan.py, line 185 in class "CleanTrashTask" method "work" accesses the variable st regardless of whether setting it with "st = os.stat(fn)" on line 182 succeeds or not. The exception (FileNotFoundError) is caught but only a diagnostic is printed, the program logic keeps on as if nothing bad had happened. Adding "continue" on line 184.5 would probably solve this. </copy>

Revision 011b50 had "pass" on line 185 but it does not seem to be the correct keyword.
I created a testbed program and it seemed to recover correctly with "continue", going immediately to next file and avoiding use of uninitialised variable "st".
 

OpenViX Feeds Status

Back
Top