From: Oleg Broytman Date: Sun, 26 Jul 2015 12:58:02 +0000 (+0300) Subject: Fix a bug X-Git-Tag: v5.0.1~1 X-Git-Url: https://git.phdru.name/?p=xsetbg.git;a=commitdiff_plain;h=13c9b4aeb309e7f3d92323041cb904e662390eaf Fix a bug --- 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.")