mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +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:
|
||||
return ''
|
||||
|
||||
return value.get(itemname, '')
|
||||
try:
|
||||
return value[itemname]
|
||||
except KeyError:
|
||||
return ''
|
||||
except TypeError:
|
||||
return ''
|
||||
|
||||
Reference in New Issue
Block a user