summaryrefslogtreecommitdiff
path: root/app/MALUser.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/MALUser.php')
-rw-r--r--app/MALUser.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/app/MALUser.php b/app/MALUser.php
index 6c62e30..f49d09a 100644
--- a/app/MALUser.php
+++ b/app/MALUser.php
@@ -36,9 +36,13 @@ class MALUser extends Model
$jikan = new MalClient;
- $animeList = $jikan->getUserAnimelist(
- new \Jikan\Request\User\UserAnimeListRequest( $this->username, 1, 1 )
- );
+ try {
+ $animeList = $jikan->getUserAnimelist(
+ new \Jikan\Request\User\UserAnimeListRequest( $this->username, 1, 1 )
+ );
+ } catch (\Exception $e){
+ return false;
+ }
$anime = array();