Fixed out-of-scope variables. Might need a better fix. Fixes #5680

This commit is contained in:
Alexander Cherniuk 2010-03-29 17:15:32 +03:00
parent 36ea39e74a
commit 6081909a26
1 changed files with 1 additions and 0 deletions

View File

@ -1671,6 +1671,7 @@ class ToplevelAgentBrowser(AgentBrowser):
# Search for an icon and category we can display
pix = self.cache.get_icon(identities)
cat, type_ = None, None
for identity in identities:
try:
cat, type_ = identity['category'], identity['type']