This commit is contained in:
Jeremy Fincher 2004-07-31 08:26:29 +00:00
parent 38c4422f88
commit fb9a19ca17

View File

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