Skip to content

Commit

Permalink
Ignore all errors on set avatar
Browse files Browse the repository at this point in the history
  • Loading branch information
zorn-v committed Aug 10, 2022
1 parent b567c4e commit ceb6eef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<name>Social Login</name>
<summary>Social login via OAuth or OpenID</summary>
<description> </description>
<version>4.16.1</version>
<version>4.16.2</version>
<licence>agpl</licence>
<author>zorn-v</author>
<namespace>SocialLogin</namespace>
Expand Down
2 changes: 1 addition & 1 deletion lib/Service/ProviderService.php
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ private function login($uid, Profile $profile, $newGroupPrefix = '')
$photo = $curl->request($profile->photoURL);
$avatar = $this->avatarManager->getAvatar($user->getUid());
$avatar->set($photo);
} catch (\Exception $e) {}
} catch (\Throwable $e) {}
}

if (isset($profile->data['groups']) && is_array($profile->data['groups'])) {
Expand Down

0 comments on commit ceb6eef

Please sign in to comment.