mirror of
https://github.com/pretix/pretix.git
synced 2026-05-09 15:54:03 +00:00
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