forked from CGM_Public/pretix_original
Fix getitem usage for non-dictionaries
This commit is contained in:
@@ -29,4 +29,9 @@ def getitem_filter(value, itemname):
|
|||||||
if not value:
|
if not value:
|
||||||
return ''
|
return ''
|
||||||
|
|
||||||
return value.get(itemname, '')
|
try:
|
||||||
|
return value[itemname]
|
||||||
|
except KeyError:
|
||||||
|
return ''
|
||||||
|
except TypeError:
|
||||||
|
return ''
|
||||||
|
|||||||
Reference in New Issue
Block a user