Skip to content

Commit 6284ec0

Browse files
authored
Merge pull request #134 from icanbwell/define-next-url
define next_url to avoid error when a request fails
2 parents a61cc14 + 5435d08 commit 6284ec0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

helix_fhir_client_sdk/graph/simulated_graph_processor_mixin.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -555,8 +555,8 @@ async def _process_target_async(
555555
if parent_resource:
556556
parent_id = parent_resource.get("id", "")
557557
parent_resource_type = parent_resource.get("resourceType", "")
558-
if parent_id and parent_id not in parent_ids:
559-
parent_ids.append(parent_id)
558+
if parent_id and parent_id not in parent_ids:
559+
parent_ids.append(parent_id)
560560
if request_size and len(parent_ids) == request_size:
561561
request_parameters = [
562562
f"{property_name}={','.join(parent_ids)}"

helix_fhir_client_sdk/queue/request_queue_mixin.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ async def _get_with_session_async( # type:ignore[override]
102102
start_time: float = time.time()
103103
last_status_code: Optional[int] = None
104104
last_response_text: Optional[str] = None
105+
next_url: Optional[str] = full_url
105106
try:
106107
# set access token in request if present
107108
access_token: Optional[str] = await self.get_access_token_async()
@@ -118,7 +119,6 @@ async def _get_with_session_async( # type:ignore[override]
118119
internal_logger=self._internal_logger,
119120
)
120121

121-
next_url: Optional[str] = full_url
122122
async with RetryableAioHttpClient(
123123
fn_get_session=lambda: self.create_http_session(),
124124
simple_refresh_token_func=lambda: self._refresh_token_function(),

0 commit comments

Comments
 (0)