fix: break attempts loop after successful download

This commit is contained in:
Terry Geng 2020-03-02 11:24:19 +08:00
parent e17d5446bf
commit 6ea2c088db

View File

@ -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)