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

TypeError: expected string or bytes-like object #664

Open
FrankAblert opened this issue Dec 30, 2019 · 2 comments · May be fixed by #683
Open

TypeError: expected string or bytes-like object #664

FrankAblert opened this issue Dec 30, 2019 · 2 comments · May be fixed by #683

Comments

@FrankAblert
Copy link

Traceback (most recent call last):
File ".\run.py", line 22, in
select_ticket_info.select().main()
File "E:\PythonProjects\12306\init\select_ticket_info.py", line 121, in main
l.reqLiftTicketInit()
File "E:\PythonProjects\12306\inter\LiftTicketInit.py", line 18, in reqLiftTicketInit
matchObj = re.search('var CLeftTicketUrl = '(.*)'', result, re.M|re.I);
File "E:\usersofts\Python3.7\lib\re.py", line 183, in search
return _compile(pattern, flags).search(string)
TypeError: expected string or bytes-like object

@hhzrz
Copy link
Collaborator

hhzrz commented Dec 30, 2019

PLEASE describe your problem as the issue template.

@BetaGo
Copy link

BetaGo commented Dec 30, 2019

今天我也遇到了,时好时坏,目测可能是部分CDN节点的问题。

  1. 尝试重新更新下CDN python3 run.py c,然后再运行 python3 run.py r;
  2. 或者在配置里设置 IS_CDN = 2 关掉CDN。

@hhzrz hhzrz linked a pull request Dec 31, 2019 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants