Skip to content

Commit

Permalink
len_array -1 otherwise error index out of bound
Browse files Browse the repository at this point in the history
  • Loading branch information
SirGankalot committed Jun 22, 2024
1 parent d0001dd commit b4b2b79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion checker/src/scam_messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -937,6 +937,6 @@
def get_scam_message():
make_big_array = scam_messages_1 + scam_messages_2 + scam_messages_3 + scam_messages_4
len_array = len(make_big_array)
random_number = random.randint(0, len_array)
random_number = random.randint(0, len_array - 1)
make_big_array_with_link = [x + " https://www.youtube.com/watch?v=dQw4w9WgXcQ" for x in make_big_array]
return make_big_array_with_link[random_number]

0 comments on commit b4b2b79

Please sign in to comment.