From fd43f3387100471efa6236b69c339fa566ee2e13 Mon Sep 17 00:00:00 2001 From: blitzmann Date: Sun, 28 Oct 2018 17:03:40 -0400 Subject: [PATCH] fix bug where info was none --- gui/builtinItemStatsViews/itemAttributes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gui/builtinItemStatsViews/itemAttributes.py b/gui/builtinItemStatsViews/itemAttributes.py index 2e62b5850..8148ee9f6 100644 --- a/gui/builtinItemStatsViews/itemAttributes.py +++ b/gui/builtinItemStatsViews/itemAttributes.py @@ -1,4 +1,5 @@ import csv +import config # noinspection PyPackageRequirements import wx @@ -260,7 +261,7 @@ class ItemParams(wx.Panel): val = getattr(att, "value", None) value = val if val is not None else att - if self.toggleView == AttributeView.NORMAL and ((attr not in GroupedAttributes and not value) or not info.published or attr in RequiredSkillAttrs): + if self.toggleView == AttributeView.NORMAL and ((attr not in GroupedAttributes and not value) or info is None or not info.published or attr in RequiredSkillAttrs): return None if info and info.displayName and self.toggleView == 1: