mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-23 18:44:04 +01:00
Bugfix.
This commit is contained in:
parent
38c4422f88
commit
fb9a19ca17
@ -250,7 +250,10 @@ class Bugzilla(callbacks.PrivmsgCommandAndRegexp):
|
|||||||
if isinstance(bug, basestring):
|
if isinstance(bug, basestring):
|
||||||
bugid = bug
|
bugid = bug
|
||||||
else:
|
else:
|
||||||
|
if bug:
|
||||||
bugid = bug[0]
|
bugid = bug[0]
|
||||||
|
else:
|
||||||
|
raise callbacks.Error, 'No bugs found.'
|
||||||
try:
|
try:
|
||||||
bugid = int(bugid)
|
bugid = int(bugid)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
|
Loading…
Reference in New Issue
Block a user