summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorcall-me-matt <nextcloud@matthiasheinisch.de>2020-10-07 14:53:55 +0200
committercall-me-matt <nextcloud@matthiasheinisch.de>2020-10-07 14:53:55 +0200
commit67a1cdd89bd81bc76b20eeb0a5fcbe39bfa48c63 (patch)
tree9ea8b37d54c099c0a11fa3530815d40281cbc07e /lib
parent604e1b1d2ea317c3e3b46fcee8aad8ba9fe82cec (diff)
catch exception if social profile invalid
Signed-off-by: call-me-matt <nextcloud@matthiasheinisch.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/Service/SocialApiService.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Service/SocialApiService.php b/lib/Service/SocialApiService.php
index 8594ba68..03484c99 100644
--- a/lib/Service/SocialApiService.php
+++ b/lib/Service/SocialApiService.php
@@ -209,7 +209,7 @@ class SocialApiService {
}
$addressBook->createOrUpdate($changes, $addressbookId);
- } catch (Exception $e) {
+ } catch (\Exception $e) {
return new JSONResponse([], Http::STATUS_INTERNAL_SERVER_ERROR);
}
return new JSONResponse([], Http::STATUS_OK);
@@ -383,7 +383,7 @@ class SocialApiService {
try {
$r = $this->updateContact($addressBook->getURI(), $contact['UID'], $network);
$response = $this->registerUpdateResult($response, $contact['FN'], $r->getStatus());
- } catch (Exception $e) {
+ } catch (\Exception $e) {
$response = $this->registerUpdateResult($response, $contact['FN'], '-1');
}