Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to parse date #53

Open
gogasca opened this issue Apr 15, 2021 · 0 comments
Open

Unable to parse date #53

gogasca opened this issue Apr 15, 2021 · 0 comments

Comments

@gogasca
Copy link
Owner

gogasca commented Apr 15, 2021

Unable to parse date when running a techmeme campaign

<DIV CLASS="itc1" ONMOUSEOVER="overitem(1,true,1)" ONMOUSEOUT="overitem(1,false,1)"><DIV CLASS="itc2" ID="210414p24"><DIV CLASS="item" ID="1i1">
[2021-04-14 22:18:30,811: ERROR/MainProcess] Task process_campaign[0175e485-7a4c-4f4c-b06c-53e91c45ad15] raised unexpected: ValueError("time d
ata '' does not match format '%y%m%d'",)
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/celery/app/trace.py", line 240, in trace_task
    R = retval = fun(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/celery/app/trace.py", line 438, in __protected_call__
    return self.run(*args, **kwargs)
  File "/usr/local/src/newsml/main/appD.py", line 37, in process_campaign
    techmeme.launch(campaign_instance)
  File "/usr/local/src/newsml/main/lib/techmeme/top_news.py", line 169, in launch
    '%y%m%d').date()
  File "/usr/local/lib/python3.6/_strptime.py", line 565, in _strptime_datetime
    tt, fraction = _strptime(data_string, format)
  File "/usr/local/lib/python3.6/_strptime.py", line 362, in _strptime
    (data_string, format))
ValueError: time data '' does not match format '%y%m%d'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant