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

Server dates before 1900 cause strftime() ValueErrors #5

Closed
duckfullstop opened this issue Nov 26, 2018 · 0 comments
Closed

Server dates before 1900 cause strftime() ValueErrors #5

duckfullstop opened this issue Nov 26, 2018 · 0 comments
Assignees
Labels

Comments

@duckfullstop
Copy link
Collaborator

For example:

ValueError: year=1870 is before 1900; the datetime strftime() methods require year >= 1900

Traceback:

irc_s3_1_a724429fde3a | Traceback (most recent call last):
irc_s3_1_a724429fde3a |   File "/usr/local/lib/python2.7/site-packages/supybot/callbacks.py", line 1320, in _callCommand
irc_s3_1_a724429fde3a |     self.callCommand(command, irc, msg, *args, **kwargs)
irc_s3_1_a724429fde3a |   File "/usr/local/lib/python2.7/site-packages/supybot/utils/python.py", line 90, in g
irc_s3_1_a724429fde3a |     f(self, *args, **kwargs)
irc_s3_1_a724429fde3a |   File "/usr/local/lib/python2.7/site-packages/supybot/callbacks.py", line 1286, in callCommand
irc_s3_1_a724429fde3a |     method(irc, msg, *args, **kwargs)
irc_s3_1_a724429fde3a |   File "/usr/local/lib/python2.7/site-packages/supybot/commands.py", line 1093, in newf
irc_s3_1_a724429fde3a |     f(self, irc, msg, args, *state.args, **state.kwargs)
irc_s3_1_a724429fde3a |   File "/var/supybot/data/plugins/suds/plugin.py", line 867, in date
irc_s3_1_a724429fde3a |     message = '%s' % conn.date.strftime('%b %d %Y')
irc_s3_1_a724429fde3a | ValueError: year=1870 is before 1900; the datetime strftime() methods require year >= 1900

Hopefully an easy enough fix. Will do ASAP

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

No branches or pull requests

1 participant