Skip to content
This repository has been archived by the owner on Oct 17, 2023. It is now read-only.

TypeError: unsupported operand type(s) for |: 'type' and 'NoneType' #51

Open
boluohong opened this issue Apr 27, 2023 · 0 comments
Open

Comments

@boluohong
Copy link

报错如下
Traceback (most recent call last):
File "0.py", line 10, in
from common.console import cmdMode, startCrawl
File "D:\t\common\console.py", line 9, in
from task.singlePageTask import SinglePageTask
File "D:\t\task\singlePageTask.py", line 14, in
from common.tools import getHttpText
File "D:\t\common\tools.py", line 285, in
def getUserId(userName: str) -> int | None:
TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant