Skip to content

Commit

Permalink
Merge pull request #19 from jakubczaplicki/patch-1
Browse files Browse the repository at this point in the history
Raise instead of returning TypeError
  • Loading branch information
lmcgartland committed Nov 8, 2018
2 parents 569853c + cee420e commit 65bf3cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graphene_file_upload/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def add_file_to_operations(operations, file_obj, path):
index = int(path[0])
sub_item = add_file_to_operations(operations[index], file_obj, path[1:])
return new_list_with_replaced_item(operations, index, sub_item)
return TypeError('Operations must be a JSON data structure')
raise TypeError('Operations must be a dict or a list of dicts')


def new_merged_dict(*dicts):
Expand Down

0 comments on commit 65bf3cd

Please sign in to comment.