diff options
author | 2010-09-22 13:57:54 +0200 | |
---|---|---|
committer | 2010-09-22 13:57:54 +0200 | |
commit | c7ea8a7687d6f4f22505e1b9a65a68d499e6b279 (patch) | |
tree | e588e924acabfa327fd162c6cca9c14934ca1ef4 /email_in.pl | |
parent | Bug 585028: Advanced Shortcut for Priority (P1-5 as search word) broken (diff) | |
download | bugzilla-c7ea8a7687d6f4f22505e1b9a65a68d499e6b279.tar.gz bugzilla-c7ea8a7687d6f4f22505e1b9a65a68d499e6b279.tar.bz2 bugzilla-c7ea8a7687d6f4f22505e1b9a65a68d499e6b279.zip |
Bug 598147: Can't call method "isa" without a package or object reference
r/a=mkanat
Diffstat (limited to 'email_in.pl')
-rwxr-xr-x | email_in.pl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/email_in.pl b/email_in.pl index 0382c4e8a..78ac32ca6 100755 --- a/email_in.pl +++ b/email_in.pl @@ -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). |