datetime 'NoneType' sporadic error

B

bfrederi

When using the datetime module, I sporadically get " 'NoneType' object
has no attribute 'datetime' " on line 40: http://dpaste.com/hold/132156/

Sorry, I don't have the traceback, this is an error that was sent to
me by one of the users. It only happens occasionally.

Any ideas?
 
C

Carl Banks

When using the datetime module, I sporadically get " 'NoneType' object
has no attribute 'datetime' " on line 40:http://dpaste.com/hold/132156/

Sorry, I don't have the traceback, this is an error that was sent to
me by one of the users. It only happens occasionally.

My guess is somewhere in your code the symbol datetime is being used
as a variable. That is, you're doing something like datetime = x.
This shadows the module.


Carl Banks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,565
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top