Skip to content

Commit

Permalink
把每个报错打印加上位置信息
Browse files Browse the repository at this point in the history
  • Loading branch information
chenxuuu committed Jan 24, 2019
1 parent ef60576 commit 29f40bb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ass_maker.py
Expand Up @@ -71,7 +71,7 @@ def timer_create(filename, path):
for i in range(1, seconds):
result+='Dialogue: 2,'+s3t(i-1)+'.00,'+s3t(i)+'.00,right_down,,0,0,0,,歌曲时间:'+s3t(i)+'/'+s3t(seconds)+'\r\n'
except Exception as e:
print('shit')
print('shit(get song length)')
print(e)
else:
try:
Expand Down Expand Up @@ -100,7 +100,7 @@ def timer_create(filename, path):
print('no files found!')
print(path+'/downloads/'+str(filename))
except Exception as e:
print('shit')
print('shit(get video length)')
print(e)
return result

Expand Down
2 changes: 1 addition & 1 deletion bilibiliClient.py
Expand Up @@ -211,6 +211,6 @@ def parseDanMu(self, messages):
loop.close()
os.system("screen -dm python3 "+var_set.path+"/bilibiliClient.py")#自动重启
except Exception as e: #防炸
print('shit')
print('shit(global)')
print(e)
os.system("screen -dm python3 "+var_set.path+"/bilibiliClient.py")#自动重启
2 changes: 1 addition & 1 deletion post_dm.py
Expand Up @@ -212,7 +212,7 @@ def playlist_download(id,user):
else:
send_dm_long('正在下载歌单:'+playlist['playlist']['name']+',共'+str(len(playlist['playlist']['tracks']))+'首')
except Exception as e: #防炸
print('shit')
print('shit(playlist)')
print(e)
send_dm_long('出错了:请检查命令或重试')
for song in playlist['playlist']['tracks']:
Expand Down

0 comments on commit 29f40bb

Please sign in to comment.