mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-27 03:00:12 -04:00
validate_blob: Add new 'code' goldtype.
This commit is contained in:
@@ -1191,7 +1191,7 @@ def validate_blob(custom):
|
||||
giftmessage = payment_blob.get('giftmessage')
|
||||
giftmessage = _force_unicode(giftmessage) if giftmessage else None
|
||||
ret['giftmessage'] = giftmessage
|
||||
elif goldtype not in ('onetime', 'autorenew', 'creddits'):
|
||||
elif goldtype not in ('onetime', 'autorenew', 'creddits', 'code'):
|
||||
raise GoldException('bad goldtype')
|
||||
|
||||
return ret
|
||||
|
||||
Reference in New Issue
Block a user