Skip to content

Commit

Permalink
Use explicit catch. Fixes #3
Browse files Browse the repository at this point in the history
  • Loading branch information
thaven committed Jan 13, 2017
1 parent cbbf0ff commit b83cb55
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/oauth/client.d
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ class OAuthSession
{
// TODO: Use splitter that is nothrow
try return split(this.scopeString, ' ');
catch assert(false); // should never actually throw
catch (Exception) assert(false); // should never actually throw
}

/++
Expand Down
2 changes: 1 addition & 1 deletion source/oauth/webapp.d
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ class OAuthWebapp
in
{
try assert (req.params.get("oauth.debug.login.checked", "no") == "yes");
catch assert(false);
catch (Exception) assert(false);
}
body
{
Expand Down

0 comments on commit b83cb55

Please sign in to comment.