Skip to content

Commit

Permalink
Merge pull request #30 from jayr0d/master
Browse files Browse the repository at this point in the history
Fixes #23 and hopefully fixes #21.
  • Loading branch information
vintitres committed Oct 21, 2012
2 parents 09c6353 + 5dfbca2 commit 96c7980
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion gnome-shell-google-calendar.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,15 @@ def get_excludes(self, filename):
return frozenset(line.strip() for line in fp)

def get_calendars(self):
feed = self.client.GetAllCalendarsFeed()
while True:
try:
feed = self.client.GetAllCalendarsFeed()
break
except Exception, e:
print '*** Exception:', e
print 'Error retrieving all calendars. Trying again in 5 seconds...'
sleep(5)
continue

# Load excluded calendars from excludes file
excludes = set()
Expand Down

0 comments on commit 96c7980

Please sign in to comment.