API - return error when number of files in zip exceeds limit
(instead of importing the configured number of files without raising errors)
This commit is contained in:
@@ -1022,7 +1022,7 @@ def post_workout(auth_user: User) -> Union[Tuple[Dict, int], HttpResponse]:
|
||||
appLog.error(e.e)
|
||||
if e.status == 'error':
|
||||
return InternalServerErrorResponse(e.message)
|
||||
return InvalidPayloadErrorResponse(e.message)
|
||||
return InvalidPayloadErrorResponse(e.message, e.status)
|
||||
|
||||
shutil.rmtree(folders['extract_dir'], ignore_errors=True)
|
||||
shutil.rmtree(folders['tmp_dir'], ignore_errors=True)
|
||||
|
||||
Reference in New Issue
Block a user