Skip to content

Conversation

@wkumari
Copy link

@wkumari wkumari commented Nov 29, 2018

Apparently at some point the response was updated to include:
<is_cal_localtime>true</is_cal_localtime>

This would make:
time.strptime(self._current_content, '%H:%M:%S')[3:6])
fail with "ValueError: time data u'true' does not match format '%H:%M:%S'"

I'm not sure what else might end with 'time', and so I'm simply excluding is_cal_localtime.

<is_cal_localtime>true</is_cal_localtime>

This would make:
time.strptime(self._current_content, '%H:%M:%S')[3:6])
fail with "ValueError: time data u'true' does not match format '%H:%M:%S'"

I'm not sure what else might end with 'time', and so I'm simply excluding is_cal_localtime.
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

Successfully merging this pull request may close these issues.

1 participant