Skip to content

Commit

Permalink
Merge pull request #66 from mike667/master
Browse files Browse the repository at this point in the history
Fix MultiValueDictKeyError issue
  • Loading branch information
lmcgartland authored Nov 30, 2021
2 parents c7e795d + 9e0a3cb commit 4dd8ec2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions graphene_file_upload/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ def place_files_in_operations(operations, files_map, files):
# output to be operations itself
output = operations
for path, key in path_to_key_iter:
file_obj = files[key]
output = add_file_to_operations(output, file_obj, path)
file_obj = files.get(key, None)
if file_obj:
output = add_file_to_operations(output, file_obj, path)
return output


Expand Down

0 comments on commit 4dd8ec2

Please sign in to comment.