pombreda / gcalcli

Automatically exported from code.google.com/p/gcalcli
0 stars 0 forks source link

Error on all except agenda: AttributeError: 'NoneType' object has no attribute 'strip' #57

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. install gcalcli
2. configure .gcalclirc
3. attempt to run gcalcli calm or gcalcli calw

What is the expected output? What do you see instead?
I expect a purdy calendar, but instead I get:

+----------+----------+----------+----------+----------+----------+----------+
|August 2010                                                                 |
+----------+----------+----------+----------+----------+----------+----------+
|Sunday    |Monday    |Tuesday   |Wednesday |Thursday  |Friday    |Saturday  |
+----------+----------+----------+----------+----------+----------+----------+
| 1        | 2        | 3        | 4        | 5        | 6        | 7        |
Traceback (most recent call last):
  File "/usr/bin/gcalcli", line 1114, in <module>
    DoooooItHippieMonster()
  File "/usr/bin/gcalcli", line 1079, in DoooooItHippieMonster
    gcal.CalQuery(args[0])
  File "/usr/bin/gcalcli", line 819, in CalQuery
    self._GraphEvents(cmd, start, count, eventList)
  File "/usr/bin/gcalcli", line 543, in _GraphEvents
    eventList)
  File "/usr/bin/gcalcli", line 396, in _GetWeekEventStrings
    tmpTimeStr.strip() + " " + event.title.text.strip()
AttributeError: 'NoneType' object has no attribute 'strip'

What version of the product are you using? On what operating system?
Installed from gcalcli_1.4-2_all.deb on Ubuntu 10.04

Please provide any additional information below.
It seems similar to issue 51, but I'm not sure that it's the same cause, so I'm 
reporting it separately.

Original issue reported on code.google.com by andrew.m...@gmail.com on 22 Aug 2010 at 5:44

GoogleCodeExporter commented 9 years ago
This has been fixed.  The problem was due to an event having no title.  Such 
events now show as "(No title)".

Original comment by eda...@insanum.com on 25 Jul 2011 at 3:15

GoogleCodeExporter commented 9 years ago

Original comment by eda...@insanum.com on 27 Jul 2011 at 4:59