From 3d2712d80b2a6a4b895c96373d3ef4633dc1cecc Mon Sep 17 00:00:00 2001 From: ivan Date: Tue, 26 Oct 2004 12:07:26 +0000 Subject: [PATCH] allow an empty exporttype so you can create new objects --- FS/FS/part_export.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/FS/FS/part_export.pm b/FS/FS/part_export.pm index 1e0b905fb..3f677b267 100644 --- a/FS/FS/part_export.pm +++ b/FS/FS/part_export.pm @@ -390,8 +390,9 @@ sub _rebless { my $exporttype = $self->exporttype; my $class = ref($self). "::$exporttype"; eval "use $class;"; - die $@ if $@; - bless($self, $class); + #die $@ if $@; + bless($self, $class) unless $@; + $self; } #these should probably all go away, just let the subclasses define em -- 2.11.0