Skip to content

Commit af41322

Browse files
committed
Remove extranous catch for bad cast, as that's now handled by checking types.
1 parent 71f74f8 commit af41322

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/scitokens.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -251,11 +251,6 @@ int scitoken_get_expiration(const SciToken token, long long *expiry,
251251
}
252252
return -1;
253253
}
254-
} catch (std::bad_cast &exc) {
255-
if (err_msg) {
256-
*err_msg = strdup("'exp' claim has invalid format - expected a number (integer or float)");
257-
}
258-
return -1;
259254
} catch (std::exception &exc) {
260255
if (err_msg) {
261256
*err_msg = strdup(exc.what());

0 commit comments

Comments
 (0)