Fixed a stupid error message. (Closes: #1009681)

This commit is contained in:
Daniel DiPaolo 2004-08-23 19:08:18 +00:00
parent 977f3f68bd
commit bfd4a9f492

View File

@ -227,7 +227,12 @@ class Todo(callbacks.Privmsg):
if cursor.rowcount == 0: if cursor.rowcount == 0:
invalid.append(taskid) invalid.append(taskid)
#print 'Invalid tasks: %s' % repr(invalid) #print 'Invalid tasks: %s' % repr(invalid)
if invalid: if invalid and len(invalid) == 1:
irc.error('Task %s could not be removed either because '
'that id doesn\'t exist, the todo doesn\'t '
'belong to you, or it has been removed '
'already.' % invalid[0])
elif invalid:
irc.error('No tasks were removed because the following ' irc.error('No tasks were removed because the following '
'tasks could not be removed: %s' % 'tasks could not be removed: %s' %
utils.commaAndify(invalid)) utils.commaAndify(invalid))