From 13c9b4aeb309e7f3d92323041cb904e662390eaf Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 26 Jul 2015 15:58:02 +0300 Subject: [PATCH] Fix a bug --- xsetbg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.") -- 2.39.2