Skip to content

fix: 未检验 config.access_token 是否为 None - #77

Merged
wuziqian211 merged 1 commit into
happycola233:mainfrom
iamzhz:main
Aug 14, 2026
Merged

fix: 未检验 config.access_token 是否为 None#77
wuziqian211 merged 1 commit into
happycola233:mainfrom
iamzhz:main

Conversation

@iamzhz

@iamzhz iamzhz commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

非常抱歉!
我在 #75 中疏忽未设置 Access Token 的情况了,导致这些用户使用时会出错.

File "/home/iamzhz/code/tchMaterial-parser/src/tchmaterial_parser/ui/download_panel.py", line 63, in download
  if not config.access_token.isascii(): # 判断 Access Token 中是否包含非 ASCII 字符
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'isascii'

(这算因小失大吗...)
于是就有了这个 PR (╯︵╰,)

@wuziqian211 wuziqian211 added 漏洞/bug Something isn't working good first issue Good for newcomers 鉴权/auth labels Aug 14, 2026
@wuziqian211
wuziqian211 merged commit 3aafb97 into happycola233:main Aug 14, 2026
1 check passed
@iamzhz

iamzhz commented Aug 14, 2026

Copy link
Copy Markdown
Contributor Author

@wuziqian211
凌晨了还在 review 代码,辛苦啦(◍•ᴗ•◍)❤

@wuziqian211

Copy link
Copy Markdown
Collaborator

@wuziqian211 凌晨了还在 review 代码,辛苦啦(◍•ᴗ•◍)❤

您也辛苦啦,感谢您一直对本程序的贡献~ヾ(≧▽≦*)o❤️

Repository owner deleted a comment from chatgpt-codex-connector Bot Aug 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

鉴权/auth 漏洞/bug Something isn't working good first issue Good for newcomers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants