How can I delete the tmp folder before raising an exception, or before the end of the program?
tmp
flag1 = 0 flag2 = 0 with Image.open(\'tmp/image.j