]> git.phdru.name Git - xsetbg.git/commitdiff
Fix a bug
authorOleg Broytman <phd@phdru.name>
Sun, 26 Jul 2015 12:58:02 +0000 (15:58 +0300)
committerOleg Broytman <phd@phdru.name>
Sun, 26 Jul 2015 12:58:02 +0000 (15:58 +0300)
xsetbg.py

index 8f4f6c8b96029aa52da78431c73bb14e910d9e7e..2658956c39fc39e78e36c84476ccb994254a4301 100644 (file)
--- 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.")