mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-20 07:16:03 +00:00
31_LightScene.pm: cat json decode errors
git-svn-id: https://svn.fhem.de/fhem/trunk@17952 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
22e3496f4c
commit
e9e5ebe83f
@ -402,7 +402,7 @@ LightScene_Load($)
|
||||
|
||||
my $decoded;
|
||||
if( $LightScene_hasJSON ) {
|
||||
$decoded = decode_json( $encoded );
|
||||
$decoded = eval { decode_json($encoded) };
|
||||
} elsif( $LightScene_hasDataDumper ) {
|
||||
$decoded = eval $encoded;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user