File tree Expand file tree Collapse file tree
aidbox-custom-operations/measure-evaluate Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -251,11 +251,11 @@ def main():
251251 try :
252252 req = urllib .request .Request (f"{ BASE_URL } /fhir/ViewDefinition/{ vd_id } " , method = "PUT" ,
253253 data = json .dumps (vd ).encode ())
254- req .add_header ("Authorization" , auth_header ())
254+ req .add_header ("Authorization" , f"Basic { auth_header ()} " )
255255 req .add_header ("Content-Type" , "application/json" )
256256 urllib .request .urlopen (req , timeout = 30 )
257- except Exception :
258- pass
257+ except Exception as e :
258+ print ( f" WARN: failed to upload ViewDefinition/ { vd_id } : { e } " )
259259 print (f" OK — { len (vd_ids )} ViewDefinitions uploaded" )
260260
261261 # Create concepts table
@@ -301,7 +301,7 @@ def main():
301301 try :
302302 req = urllib .request .Request (f"{ BASE_URL } /fhir/ViewDefinition/{ vd_id } /$materialize" , method = "POST" ,
303303 data = mat_body )
304- req .add_header ("Authorization" , auth_header ())
304+ req .add_header ("Authorization" , f"Basic { auth_header ()} " )
305305 req .add_header ("Content-Type" , "application/json" )
306306 urllib .request .urlopen (req , timeout = 300 )
307307 except Exception as e :
You can’t perform that action at this time.
0 commit comments