-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: When a user gives a bad field name, it exposes a bug in `Struct.__init__`. ``` File "thrift.python/types.pyx", line 1118, in thrift.python.types.Struct.__call__ TypeError: 'dict_keys' object is not subscriptable ``` Instead of subscripting keys, just format all the bad keys as a list. Reviewed By: yoney Differential Revision: D67347012 fbshipit-source-id: 1bddf24505d0602a824535785c46e9f143defac3
- Loading branch information
1 parent
3f284b6
commit 0a81d40
Showing
2 changed files
with
10 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters