Bugtracker: Guard against assignee data being private on Launchpad.
This commit is contained in:
@ -23,7 +23,7 @@ import supybot
|
||||
import supybot.world as world
|
||||
from importlib import reload
|
||||
|
||||
__version__ = "5.2.0"
|
||||
__version__ = "5.3.0"
|
||||
__author__ = supybot.Author("Krytarik Raido", "krytarik", "krytarik@gmail.com")
|
||||
__contributors__ = {
|
||||
supybot.Author("Dennis Kaarsemaker", "Seveas", "dennis@kaarsemaker.net"): ['Original Author'],
|
||||
|
@ -294,7 +294,11 @@ class Launchpad(IBugtracker):
|
||||
taskdata = tasks[0]
|
||||
|
||||
if taskdata.assignee:
|
||||
# In case assignee data is private
|
||||
try:
|
||||
assignee = taskdata.assignee.display_name
|
||||
except:
|
||||
assignee = ''
|
||||
else:
|
||||
assignee = ''
|
||||
|
||||
|
Reference in New Issue
Block a user