Fix handling of misassigned lcsh / loc links in NodaWikidataFetcher

This commit is contained in:
Joshua Ramon Enslin 2023-10-18 02:46:11 +02:00
parent d55361e29b
commit bbbc84015b
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE

View File

@ -110,7 +110,7 @@ final class NodaWikidataFetcher {
return 'loc';
}
}
catch (MDgenericInvalidInputsException $e) {
catch (MDgenericInvalidInputsException | MDInvalidNodaLinkException | MDInvalidNodaLink $e) {
}
try {
@ -118,7 +118,7 @@ final class NodaWikidataFetcher {
return 'lcsh';
}
}
catch (MDgenericInvalidInputsException $e) {
catch (MDgenericInvalidInputsException | MDInvalidNodaLinkException | MDInvalidNodaLink $e) {
}
return '';