fix exeption handling
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -536,7 +536,7 @@ abstract class ImmoScoutAPI extends GuzzleClient | ... | @@ -536,7 +536,7 @@ abstract class ImmoScoutAPI extends GuzzleClient |
| 536 | { | 536 | { |
| 537 | try { | 537 | try { |
| 538 | return json_decode((string) $res->getBody(), true); | 538 | return json_decode((string) $res->getBody(), true); |
| 539 | } catch (Exception $ex) { | 539 | } catch (\Exception $ex) { |
| 540 | throw new InvalidResponse('invalid json response'); | 540 | throw new InvalidResponse('invalid json response'); |
| 541 | } | 541 | } |
| 542 | } | 542 | } | ... | ... |
-
Please register or sign in to post a comment