Skip to content

Commit

Permalink
Merge pull request #5 from moravianlibrary/response-status-422
Browse files Browse the repository at this point in the history
Remove catch 422 response for unreliability
  • Loading branch information
sipek-mzk authored Mar 15, 2022
2 parents 4deab5a + afb038f commit 711b5f1
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,15 +210,6 @@ public function updateReader(string $eppn, RequestModel\Reader $reader): ?Respon
case 204:
return $this->getReader($eppn);
break;
case 422:
// Library is not active
throw new \Mzk\ZiskejApi\Exception\ApiInputException(
sprintf(
'Ziskej API input error: Library with sigla "%s" is not active',
$reader->getSigla()
),
$apiResponse->getStatusCode()
);
default:
throw new \Mzk\ZiskejApi\Exception\ApiResponseException($apiResponse);
break;
Expand Down

0 comments on commit 711b5f1

Please sign in to comment.