From: Ivan Kohler Date: Thu, 25 Jan 2018 00:22:22 +0000 (-0800) Subject: no need for errors decrypting inadvertantly encrypted payinfo to be fatal, RT#76385 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=73e26fc882f8e57401e6375ba24e51d32c23463a no need for errors decrypting inadvertantly encrypted payinfo to be fatal, RT#76385 --- diff --git a/FS/FS/Upgrade.pm b/FS/FS/Upgrade.pm index 123811037..751e1da3c 100644 --- a/FS/FS/Upgrade.pm +++ b/FS/FS/Upgrade.pm @@ -338,7 +338,10 @@ sub upgrade { }); foreach my $object ( @objects ) { my $payinfo = $object->decrypt($object->payinfo); - die "error decrypting payinfo" if $payinfo eq $object->payinfo; + if ( $payinfo eq $object->payinfo ) { + warn "error decrypting payinfo for $table: $payinfo\n"; + next; + } $object->payinfo($payinfo); my $error = $object->replace; die $error if $error;