mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-23 02:24:12 +01:00
Bugfix.
This commit is contained in:
parent
38c4422f88
commit
fb9a19ca17
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user