From 4ca9d581c81a0f70bc4be97eb713914ecd21ef7a Mon Sep 17 00:00:00 2001 From: Rafael Vargas Date: Sat, 1 Jan 2022 13:13:05 -0400 Subject: [PATCH] Fixing range of move_songs function --- vulkanbot/music/Playlist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vulkanbot/music/Playlist.py b/vulkanbot/music/Playlist.py index b290eb3..aebe0ae 100644 --- a/vulkanbot/music/Playlist.py +++ b/vulkanbot/music/Playlist.py @@ -143,7 +143,7 @@ class Playlist(IPlaylist): Positions: First music is 1 Return (Error bool, string) with the status of the function, to show to user """ - if pos2 not in range(1, len(self.__queue)) or pos1 not in range(1, len(self.__queue)): + if pos2 not in range(1, len(self.__queue) + 1) or pos1 not in range(1, len(self.__queue) + 1): return (False, 'Numbers need to be more than 0 and less than the queue length') try: