             case let .success(response):
                 self.followingUsers = response
                 self.loadFollowingUsersGists(client: client)
-            case .failure(_):
-                assertionFailure()
+                loadComplete()
+            case .failure(let error):
+                logger.error(error)
+                loadComplete()
             }
         }
     }

                    }
                case .failure(let error):
                    logger.error(error)
                    assertionFailure()
                }
            }
        }

        self.gistItems = []
        self.followingUsers = []
        if let userName = KeychainService.get(forKey: .userName) {
            load(userName: userName) {
                DispatchQueue.main.async {
                    self.refreshControl!.endRefreshing()
                }
            }
        }
    }

    // UserのFollowsのGistを読み込む
    func load(userName: String,
              loadComplete: @escaping () -> Void) {
        let client = GitHubClient()
        let request = GitHubAPI.GetUsersFollowing(userName: userName)

