Fix handling of misassigned lcsh / loc links in NodaWikidataFetcher
This commit is contained in:
parent
d55361e29b
commit
bbbc84015b
|
@ -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 '';
|
||||
|
|
Loading…
Reference in New Issue
Block a user