Commit af519422 authored by Vincent Pelletier's avatar Vincent Pelletier

obj will not be None here.

It's tested earlier in the same method.
parent 97efb118
......@@ -2275,7 +2275,6 @@ class ListBoxRendererLine:
original_value = getattr(brain, alias)
processed_value = original_value
else:
if obj is not None:
try:
# Get the trailing part.
try:
......@@ -2294,9 +2293,6 @@ class ListBoxRendererLine:
except (AttributeError, KeyError, Unauthorized):
original_value = None
processed_value = 'Could not evaluate %s' % property_id
else:
original_value = None
processed_value = 'Object does not exist'
# If the value is callable, evaluate it.
if callable(original_value):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment