Skip to content

Commit 78b5303

Browse files
committed
Check that responsejson is instance of dict
1 parent ccfad86 commit 78b5303

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roboflow/adapters/rfapi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def upload_image(
101101
pass
102102

103103
if response.status_code != 200:
104-
if responsejson:
104+
if responsejson and isinstance(responsejson, dict):
105105
err_msg = responsejson
106106

107107
if err_msg.get("error"):

0 commit comments

Comments
 (0)