Skip to content

Commit

Permalink
Merge pull request #625 from Ikaros-521/owner
Browse files Browse the repository at this point in the history
修复tiktok日志输出代码错误
  • Loading branch information
Ikaros-521 authored Feb 7, 2024
2 parents 5e5cc7f + db53421 commit b4bcfe2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tiktok.py
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ def load_data_list(type):
# Define how you want to handle specific events via decorator
@client.on("connect")
async def on_connect(_: ConnectEvent):
logging.info("连接到 房间ID:", client.room_id)
logging.info(f"连接到 房间ID:{client.room_id}")

@client.on("disconnect")
async def on_disconnect(event: DisconnectEvent):
Expand Down Expand Up @@ -890,11 +890,12 @@ async def on_follow(event: FollowEvent):
client.run()

except LiveNotFound:
logging.info(f"用户ID: `@{client.unique_id}` 好像不在线捏, 1分钟后重试...")
logging.info(f"用户ID: @{client.unique_id} 好像不在线捏, 1分钟后重试...")

# 退出程序
def exit_handler(signum, frame):
logging.info("Received signal:", signum)
logging.info(f"Received signal:{signum}")

os._exit(0)

if __name__ == '__main__':
Expand Down

0 comments on commit b4bcfe2

Please sign in to comment.