Remove default max_attempts value from get_random_quote
This commit is contained in:
parent
02bbcefe7c
commit
ba790c39e2
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ quotes: a list of comma separated values representing quotes
|
|||
max_attempts: the number of times a random quote should be selected if the previously selectd quote is formatted incorrectly
|
||||
return: the selected quote, or an empty list (if max_attempts was exceeded)
|
||||
"""
|
||||
def get_random_quote (quotes, max_attempts = 5):
|
||||
def get_random_quote (quotes, max_attempts):
|
||||
success = False
|
||||
attempts = 0
|
||||
quote = []
|
||||
|
|
Loading…
Reference in a new issue