From aaa6dfec0f0653507dbf1c0d934e7a6b7ca51e29 Mon Sep 17 00:00:00 2001 From: Andrew Myers Date: Thu, 9 Nov 2023 14:12:47 -0500 Subject: [PATCH] Removes test for zero mmif. Alerting user with RedirectResponse will require some thought. This is ok for now. --- chowda/views.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/chowda/views.py b/chowda/views.py index af4a556..c2082e1 100644 --- a/chowda/views.py +++ b/chowda/views.py @@ -201,7 +201,6 @@ class BatchView(ClammerModelView): 'duplicate_batches', 'combine_batches', 'download_mmif', - 'test_custom_response_action', ] fields: ClassVar[list[Any]] = [ @@ -382,10 +381,6 @@ async def download_mmif(self, request: Request, pks: List[Any]) -> str: for mmif in batch.output_mmifs ] - # Bail early with a message if there isn't anything to download. - if len(all_mmif_locations) == 0: - raise ActionFailed('No MMIFs to download') - # Download files from S3 s3 = boto3.client('s3') downloaded_mmif_files = []