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

Problem with the time format #2

Open
rznamd opened this issue Nov 14, 2020 · 0 comments
Open

Problem with the time format #2

rznamd opened this issue Nov 14, 2020 · 0 comments

Comments

@rznamd
Copy link

rznamd commented Nov 14, 2020

Traceback (most recent call last):
File "C:\Users\Razin\Documents\Python Scripts\Python_Venv\temp\webdriver_prac.py", line 55, in
print(msg.date)
File "C:\Users\Razin\AppData\Local\Programs\Python\Python38-32\lib\site-packages\simon\chat\elements.py", line 38, in date
return self.__get_cleaned_datetime()
File "C:\Users\Razin\AppData\Local\Programs\Python\Python38-32\lib\site-packages\simon\chat\elements.py", line 60, in __get_cleaned_datetime
return datetime.datetime.strptime(datetime_str, "[%H:%M, %m/%d/%Y]")
File "C:\Users\Razin\AppData\Local\Programs\Python\Python38-32\lib_strptime.py", line 568, in _strptime_datetime
tt, fraction, gmtoff_fraction = _strptime(data_string, format)
File "C:\Users\Razin\AppData\Local\Programs\Python\Python38-32\lib_strptime.py", line 349, in _strptime
raise ValueError("time data %r does not match format %r" %
ValueError: time data '[6:35 am, 10/08/2020] Shanjabi' does not match format '[%H:%M, %m/%d/%Y]'

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