https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22249

--- Comment #2 from Jonathan Druart <jonathan.dru...@bugs.koha-community.org> 
---
(In reply to Jon Knight from comment #1)
> Not tackling the cause of this directly (ie why is it requesting a module
> that doesn't exist and hasn't be loaded into the code) but what about having
> something like this before line 89:
> 
> my $loaded = $packages->VERSION;
> if(!$loaded) {
>     eval('use '.$packages);
>     if(!$packages->VERSION) {
>         warn "Can't load package $packages: $!\n";
>     }
> }

We usually use Module::Load::Conditional, but yes it is the same idea.

-- 
You are receiving this mail because:
You are watching all bug changes.
You are on the CC list for the bug.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to