folio-data-import 0.2.8rc5__py3-none-any.whl → 0.2.8rc6__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of folio-data-import might be problematic. Click here for more details.
- folio_data_import/MARCDataImport.py +13 -8
- folio_data_import/marc_preprocessors/_preprocessors.py +1 -1
- {folio_data_import-0.2.8rc5.dist-info → folio_data_import-0.2.8rc6.dist-info}/METADATA +1 -1
- folio_data_import-0.2.8rc6.dist-info/RECORD +11 -0
- {folio_data_import-0.2.8rc5.dist-info → folio_data_import-0.2.8rc6.dist-info}/WHEEL +1 -1
- folio_data_import-0.2.8rc5.dist-info/RECORD +0 -11
- {folio_data_import-0.2.8rc5.dist-info → folio_data_import-0.2.8rc6.dist-info}/LICENSE +0 -0
- {folio_data_import-0.2.8rc5.dist-info → folio_data_import-0.2.8rc6.dist-info}/entry_points.txt +0 -0
|
@@ -505,14 +505,17 @@ class MARCImportJob:
|
|
|
505
505
|
f"/metadata-provider/jobSummary/{self.job_id}"
|
|
506
506
|
)
|
|
507
507
|
self.current_retry_timeout = None
|
|
508
|
-
except (httpx.ConnectTimeout, httpx.ReadTimeout):
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
508
|
+
except (httpx.ConnectTimeout, httpx.ReadTimeout, httpx.HTTPStatusError) as e:
|
|
509
|
+
if not hasattr(e, "response") or e.response.status_code == 502:
|
|
510
|
+
sleep(.25)
|
|
511
|
+
with httpx.Client(
|
|
512
|
+
timeout=self.current_retry_timeout,
|
|
513
|
+
verify=self.folio_client.ssl_verify
|
|
514
|
+
) as temp_client:
|
|
515
|
+
self.folio_client.httpx_client = temp_client
|
|
516
|
+
return await self.get_job_status()
|
|
517
|
+
else:
|
|
518
|
+
raise e
|
|
516
519
|
return job_summary
|
|
517
520
|
|
|
518
521
|
|
|
@@ -595,6 +598,8 @@ async def main() -> None:
|
|
|
595
598
|
else:
|
|
596
599
|
marc_files = list(Path("./").glob(args.marc_file_path))
|
|
597
600
|
|
|
601
|
+
marc_files.sort()
|
|
602
|
+
|
|
598
603
|
if len(marc_files) == 0:
|
|
599
604
|
print(f"No files found matching {args.marc_file_path}. Exiting.")
|
|
600
605
|
sys.exit(1)
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
folio_data_import/MARCDataImport.py,sha256=iIsNDZCBCNeVqkjeBIERvRT3Ee7ryPh1P0M4xTnp2Gw,24270
|
|
2
|
+
folio_data_import/UserImport.py,sha256=Y9ZjYoUP_vNJVftx_xUcbBqvC5CwWeuzlmCcSVQfzgo,40976
|
|
3
|
+
folio_data_import/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
+
folio_data_import/__main__.py,sha256=kav_uUsnrIjGjVxQkk3exLKrc1mah9t2x3G6bGS-5I0,3710
|
|
5
|
+
folio_data_import/marc_preprocessors/__init__.py,sha256=Wt-TKkMhUyZWFS-WhAmbShKQLPjXmHKPb2vL6kvkqVA,72
|
|
6
|
+
folio_data_import/marc_preprocessors/_preprocessors.py,sha256=CMG4Xq3vR84xmNFUJfRmnU0A5lchAfK33xDzeiC2AWk,2787
|
|
7
|
+
folio_data_import-0.2.8rc6.dist-info/LICENSE,sha256=qJX7wxMC7ky9Kq4v3zij8MjGEiC5wsB7pYeOhLj5TDk,1083
|
|
8
|
+
folio_data_import-0.2.8rc6.dist-info/METADATA,sha256=3ZFdaSiFBTbtw_mXnkURBA4mHtgpXy6JnGpN8TZdXSM,6115
|
|
9
|
+
folio_data_import-0.2.8rc6.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
|
|
10
|
+
folio_data_import-0.2.8rc6.dist-info/entry_points.txt,sha256=498SxWVXeEMRNw3PUf-eoReZvKewmYwPBtZhIUPr_Jg,192
|
|
11
|
+
folio_data_import-0.2.8rc6.dist-info/RECORD,,
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
folio_data_import/MARCDataImport.py,sha256=_HaGBq90lN-NEuDm4GWW9W026NnKujU1kjzORjICzf0,24074
|
|
2
|
-
folio_data_import/UserImport.py,sha256=Y9ZjYoUP_vNJVftx_xUcbBqvC5CwWeuzlmCcSVQfzgo,40976
|
|
3
|
-
folio_data_import/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
folio_data_import/__main__.py,sha256=kav_uUsnrIjGjVxQkk3exLKrc1mah9t2x3G6bGS-5I0,3710
|
|
5
|
-
folio_data_import/marc_preprocessors/__init__.py,sha256=Wt-TKkMhUyZWFS-WhAmbShKQLPjXmHKPb2vL6kvkqVA,72
|
|
6
|
-
folio_data_import/marc_preprocessors/_preprocessors.py,sha256=Y9t6tIFxQdzBYYniBZ3Lq05Ukk-3orAXd4YQaJuGNRA,2786
|
|
7
|
-
folio_data_import-0.2.8rc5.dist-info/LICENSE,sha256=qJX7wxMC7ky9Kq4v3zij8MjGEiC5wsB7pYeOhLj5TDk,1083
|
|
8
|
-
folio_data_import-0.2.8rc5.dist-info/METADATA,sha256=cBes2BOvOrzY_3jNUohXWvChAMB-DScgYVPArV4lnvo,6115
|
|
9
|
-
folio_data_import-0.2.8rc5.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
|
|
10
|
-
folio_data_import-0.2.8rc5.dist-info/entry_points.txt,sha256=498SxWVXeEMRNw3PUf-eoReZvKewmYwPBtZhIUPr_Jg,192
|
|
11
|
-
folio_data_import-0.2.8rc5.dist-info/RECORD,,
|
|
File without changes
|
{folio_data_import-0.2.8rc5.dist-info → folio_data_import-0.2.8rc6.dist-info}/entry_points.txt
RENAMED
|
File without changes
|