-
Notifications
You must be signed in to change notification settings - Fork 167
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
AttributeError traceback when trying to open a particular recurring task: 'Date' object has no attribute 'strftime' #870
Comments
Same error trying to open a recurring task : Context: Global generic exception Traceback (most recent call last):
File "/app/lib/python3.9/site-packages/GTG/gtk/browser/main_window.py", line 1060, in on_edit_active_task
self.app.open_task(tid)
File "/app/lib/python3.9/site-packages/GTG/gtk/application.py", line 553, in open_task
editor = TaskEditor(requester=self.req, app=self, task=task,
File "/app/lib/python3.9/site-packages/GTG/gtk/editor/editor.py", line 98, in __init__
self.recurring_menu = RecurringMenu(self.req, task.tid, self.builder)
File "/app/lib/python3.9/site-packages/GTG/gtk/editor/recurring_menu.py", line 45, in __init__
self.update_header()
File "/app/lib/python3.9/site-packages/GTG/gtk/editor/recurring_menu.py", line 121, in update_header
month_day=self.task.get_recurring_updated_date().strftime('%d')))
AttributeError: 'Date' object has no attribute 'strftime' Software versions:
|
I have the issue too: Context: Global generic exception Traceback (most recent call last):
File "/app/lib/python3.9/site-packages/GTG/gtk/browser/main_window.py", line 1060, in on_edit_active_task
self.app.open_task(tid)
File "/app/lib/python3.9/site-packages/GTG/gtk/application.py", line 553, in open_task
editor = TaskEditor(requester=self.req, app=self, task=task,
File "/app/lib/python3.9/site-packages/GTG/gtk/editor/editor.py", line 98, in __init__
self.recurring_menu = RecurringMenu(self.req, task.tid, self.builder)
File "/app/lib/python3.9/site-packages/GTG/gtk/editor/recurring_menu.py", line 45, in __init__
self.update_header()
File "/app/lib/python3.9/site-packages/GTG/gtk/editor/recurring_menu.py", line 121, in update_header
month_day=self.task.get_recurring_updated_date().strftime('%d')))
AttributeError: 'Date' object has no attribute 'strftime' Software versions:
|
Took a look at this today. It looks like the code is trying to call |
@APCBoston did you submitted a PR ? |
I haven't done anything with this since my 9/19 message since it got no response, and I wasn't sure in light of the ongoing "megaport" whether it made sense to fix this in the current main branch. That said, on a quick glance it looks like the new code has the same issue, so if somebody wants to say "yes that would be a good idea / would make my life better," I'd be happy to do it. |
Can't speak about technical points but I can say as a user impacted by this issue it would make my life better if fixed 😊
Le 4 novembre 2022 19:52:52 GMT+01:00, Borealis ***@***.***> a écrit :
…> @APCBoston did you submitted a PR ?
I haven't done anything with this since my 9/19 message since it got no response, and I wasn't sure in light of the ongoing "megaport" whether it made sense to fix this in the current main branch. That said, on a quick glance it looks like the new code has the same issue, so if somebody wants to say "yes that would be a good idea / would make my life better," I'd be happy to do it.
--
Reply to this email directly or view it on GitHub:
#870 (comment)
You are receiving this because you commented.
Message ID: ***@***.***>
|
Thanks for this @APCBoston ! |
I don't know if this would happen with the git version and the new core, but in case this is useful, here's a traceback I encountered on 0.6 today when trying to open/edit my recurring "treat the leather clothes" task:
The offending task looks like this in my
gtg_data.xml
file:The text was updated successfully, but these errors were encountered: