File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -107,17 +107,19 @@ def download(self):
107
107
108
108
# gets the response, makes sure it's 200, puts it in an object variable
109
109
if response .status_code != 200 :
110
+ message = "Something went wrong while downloading the requested metadata. Make sure all the inputs are correct."
110
111
try :
111
- message = json .loads (response .text ).get ("errors" )
112
+ details = json .loads (response .text ).get ("errors" )
112
113
except (json .decoder .JSONDecodeError , KeyError ):
113
- message = "Something went wrong while downloading the requested metadata. Make sure all the inputs are correct. "
114
+ details = "N/A "
114
115
self .log_error (
115
116
"request_failed" ,
116
117
{
117
118
"concept_id" : self .concept_id ,
118
119
"url" : url ,
119
120
"status_code" : response .status_code ,
120
121
"message" : message ,
122
+ "details" : details ,
121
123
},
122
124
)
123
125
return
You can’t perform that action at this time.
0 commit comments