Skip to content

Commit

Permalink
fix: 发布 mlog 任务某些情况出错
Browse files Browse the repository at this point in the history
  • Loading branch information
chen310 authored Mar 23, 2022
1 parent f7177b4 commit 05bac20
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions task/publishMlog.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@ def start(user, task={}):
url = song.get('al', {}).get('picUrl', '')
else:
user.taskInfo(task['taskName'], '歌曲信息获取失败,请检查ID是否正确')
return

if len(url) == 0:
user.taskInfo(task['taskName'], '专辑图片获取失败')
return

path = '/tmp'
if not os.path.exists(path):
Expand Down

0 comments on commit 05bac20

Please sign in to comment.