=== modified file 'GTG/core/datastore.py'
--- GTG/core/datastore.py 2009-12-26 20:51:14 +0000
+++ GTG/core/datastore.py 2010-02-14 10:02:48 +0000
@@ -102,7 +102,11 @@
#If tid, we force that tid and create a real new task
if tid and tid not in self.tasks:
task = Task(tid, self.requester, newtask=newtask)
- uid, pid = tid.split('@') #pylint: disable-msg=W0612
+ bundle = tid.split('@')
+ if not bundle:
+ sys.stderr.write('Tid does not exist in backend')
+ return None
+ uid, pid = bundle
self.tasks[tid] = task
toreturn = task
#Else we create a new task in the given pid
=== modified file 'GTG/taskbrowser/browser.py'
--- GTG/taskbrowser/browser.py 2010-01-26 21:36:16 +0000
+++ GTG/taskbrowser/browser.py 2010-02-14 10:02:48 +0000
@@ -687,6 +687,9 @@
self.start_minimized == True) and \
"opened_tasks" in self.config["browser"]:
odic = self.config["browser"]["opened_tasks"]
+ #odic can contain also "None" or "None,", so we skip them
+ if odic == "None" or (len(odic)> 0 and odic[0] == "None"):
+ return
for t in odic:
ted = self.open_task(t)
#restoring position doesn't work, I don't know why