File tree 1 file changed +9
-6
lines changed
1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -61,12 +61,15 @@ public function findById($id)
61
61
$ crawler ->filter ('.aunp-content .div-table ' )->each (function (Crawler $ table ) use (&$ people ) {
62
62
$ title = $ table ->filter ('.vr-hlavicka ' )->text ();
63
63
64
- if ('jednatel: ' === $ title ) {
65
- $ person = JusticeJednatelPersonParser::parseFromDomCrawler ($ table );
66
- $ people [$ person ->getName ()] = $ person ;
67
- } elseif ('Společník: ' === $ title ) {
68
- $ person = JusticeSpolecnikPersonParser::parseFromDomCrawler ($ table );
69
- $ people [$ person ->getName ()] = $ person ;
64
+ try {
65
+ if ('jednatel: ' === $ title ) {
66
+ $ person = JusticeJednatelPersonParser::parseFromDomCrawler ($ table );
67
+ $ people [$ person ->getName ()] = $ person ;
68
+ } elseif ('Společník: ' === $ title ) {
69
+ $ person = JusticeSpolecnikPersonParser::parseFromDomCrawler ($ table );
70
+ $ people [$ person ->getName ()] = $ person ;
71
+ }
72
+ } catch (\Exception $ e ) {
70
73
}
71
74
});
72
75
You can’t perform that action at this time.
0 commit comments