fix: break attempts loop after successful download
This commit is contained in:
parent
e17d5446bf
commit
6ea2c088db
@ -466,6 +466,7 @@ class MumbleBot:
|
||||
ydl.extract_info(url)
|
||||
music['ready'] = "yes"
|
||||
download_succeed = True
|
||||
break
|
||||
except:
|
||||
error_traceback = traceback.format_exc().split("During")[0]
|
||||
self.log.error("bot: download failed with error:\n %s" % error_traceback)
|
||||
|
Loading…
x
Reference in New Issue
Block a user