Skip to content

Commit

Permalink
Merge 1a0ccde into 3de14f8
Browse files Browse the repository at this point in the history
  • Loading branch information
Chever-John committed Apr 26, 2022
2 parents 3de14f8 + 1a0ccde commit c5d0d5f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions apisix/runner/utils/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
# limitations under the License.
#

from tkinter.messagebox import NO
import flatbuffers
from A6 import Method as A6Method
from A6 import TextEntry as A6Entry
Expand Down Expand Up @@ -224,8 +225,12 @@ def parse_dict_vector(cls: object, ty: int) -> dict:
return res

for i in range(length):
key = getattr(cls, fn)(i).Name().decode()
val = getattr(cls, fn)(i).Value().decode()
key = getattr(cls, fn)(i).Name()
if key is not None:
key = key.decode()
val = getattr(cls, fn)(i).Value()
if key is not None:
val = val.decode()
res[key] = val

return res
Expand Down

0 comments on commit c5d0d5f

Please sign in to comment.