Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Commit

Permalink
Crash fix if course_dates_fragment or xBlock end points returns 500 e…
Browse files Browse the repository at this point in the history
…rror code (#1079)
  • Loading branch information
saeedbashir authored and salman2013 committed Mar 2, 2018
1 parent 3708c5a commit 1730697
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Source/AuthenticatedWebViewController.swift
Expand Up @@ -262,10 +262,12 @@ public class AuthenticatedWebViewController: UIViewController, WKNavigationDeleg

switch errorGroup {
case HttpErrorGroup.http4xx:
self.state = .NeedingSession
state = .NeedingSession
break
case HttpErrorGroup.http5xx:
self.loadController.state = LoadState.failed()
loadController.state = LoadState.failed()
decisionHandler(.cancel)
return
}
}
decisionHandler(.allow)
Expand Down

0 comments on commit 1730697

Please sign in to comment.