summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pywal/image.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pywal/image.py b/pywal/image.py
index 7c51ae0..0e6774b 100644
--- a/pywal/image.py
+++ b/pywal/image.py
@@ -13,7 +13,7 @@ from . import wallpaper
def get_random_image(img_dir):
"""Pick a random image file from a directory."""
current_wall = wallpaper.get()
- current_wall = os.path.basename(current_wall[0])
+ current_wall = os.path.basename(current_wall)
file_types = (".png", ".jpg", ".jpeg", ".jpe", ".gif")
images = [img for img in os.scandir(img_dir)