Sunday, February 26, 2012

Re: Question on unknown error

Please give us the full traceback and exact line of code it occurred
on. There isn't enough information right now.

On Sun, Feb 26, 2012 at 1:38 PM, Mario Gudelj <mario.gudelj@gmail.com> wrote:
> In print 'time' what's time? Should you not have print exp_datetime?
>
>
> On 27 February 2012 01:27, Stanwin Siow <stanwin.ktsiow@gmail.com> wrote:
>>
>> Hello,
>>
>> I have the following method:
>>
>> def subscribe_keyword(userid,subDay =7,KEYWORD_SET=frozenset()):
>>     try:
>> ...
>>
>>         sub_datetime = datetime.datetime.now()
>>         exp_datetime = sub_datetime + timedelta(days=subDay)
>> print 'time'
>>
>> However when i try to run my app,
>>
>> The following error throws at those two lines.
>>
>> Err: sequence item 0: expected string, int found
>>
>> Is there something wrong with the module?
>>
>>
>>
>>
>>
>> Best Regards,
>>
>> Stanwin Siow
>>
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To post to this group, send email to django-users@googlegroups.com.
>> To unsubscribe from this group, send email to
>> django-users+unsubscribe@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment