Commit b4baeb2a authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 598147: Can't call method "isa" without a package or object reference

r/a=mkanat
parent a628b7c1
......@@ -42,6 +42,7 @@ use Email::MIME::Attachment::Stripper;
use Getopt::Long qw(:config bundling);
use Pod::Usage;
use Encode;
use Scalar::Util qw(blessed);
use Bugzilla;
use Bugzilla::Attachment;
......@@ -352,7 +353,8 @@ sub die_handler {
# In Template-Toolkit, [% RETURN %] is implemented as a call to "die".
# But of course, we really don't want to actually *die* just because
# the user-error or code-error template ended. So we don't really die.
return if $msg->isa('Template::Exception') && $msg->type eq 'return';
return if blessed($msg) && $msg->isa('Template::Exception')
&& $msg->type eq 'return';
# If this is inside an eval, then we should just act like...we're
# in an eval (instead of printing the error and exiting).
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment