X-Git-Url: https://git.phdru.name/?p=xsetbg.git;a=blobdiff_plain;f=xsetbg.py;h=2658956c39fc39e78e36c84476ccb994254a4301;hp=8f4f6c8b96029aa52da78431c73bb14e910d9e7e;hb=13c9b4aeb309e7f3d92323041cb904e662390eaf;hpb=a05016bb0fad3cda2e670f30926ee84f04510637 diff --git a/xsetbg.py b/xsetbg.py index 8f4f6c8..2658956 100644 --- a/xsetbg.py +++ b/xsetbg.py @@ -114,7 +114,7 @@ def change(force=False): current_time - min_delay) old_shown_count = old_shown_select.count() if old_shown_count: - row = old_shown_select[random.randint(0, not_shown_count - 1)] + row = old_shown_select[random.randint(0, old_shown_count - 1)] else: error("No images to show found. Run rescan_fs.py " "or decrease min_delay. Abort.")