This commit is contained in:
Jeremy Fincher 2004-07-31 08:26:29 +00:00
parent 38c4422f88
commit fb9a19ca17
1 changed files with 4 additions and 1 deletions

View File

@ -250,7 +250,10 @@ class Bugzilla(callbacks.PrivmsgCommandAndRegexp):
if isinstance(bug, basestring):
bugid = bug
else:
bugid = bug[0]
if bug:
bugid = bug[0]
else:
raise callbacks.Error, 'No bugs found.'
try:
bugid = int(bugid)
except ValueError: