-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Instead of suppressing an exception, prevent it (#148)
By checking if the dereferenced value is blessed, make sure we can call 'isa' on it. Adds dependency on `Scalar::Util` (which is in 'core').
- Loading branch information
1 parent
b4ddebb
commit fb7b31e
Showing
2 changed files
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@jonasbn Due to this branch of the
if
being "carp" and not "croak", the ill-understood value is passed to the date-time parser. Should we either not check, or croak? (both resulting in errors anyway).