mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-10 21:09:22 +01:00
Fixed a stupid error message. (Closes: #1009681)
This commit is contained in:
parent
977f3f68bd
commit
bfd4a9f492
@ -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))
|
||||||
|
Loading…
Reference in New Issue
Block a user