Skip to content

Commit

Permalink
Per #1472, update/correct log messages in python_dataplane.cc.
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnHalleyGotway committed Oct 22, 2020
1 parent 6e72225 commit 1b728db
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions met/src/libcode/vx_data2d_python/python_dataplane.cc
Expand Up @@ -346,7 +346,7 @@ if ( PyErr_Occurred() ) {

PyErr_Print();

mlog << Warning << "\npython_dataplane() -> "
mlog << Warning << "\npickle_dataplane() -> "
<< "an error occurred initializing python\n\n";

return ( false );
Expand Down Expand Up @@ -392,7 +392,7 @@ if ( PyErr_Occurred() ) {

PyErr_Print();

mlog << Warning << "\npython_dataplane() -> "
mlog << Warning << "\npickle_dataplane() -> "
<< "an error occurred importing module "
<< '\"' << path << "\"\n\n";

Expand All @@ -402,7 +402,7 @@ if ( PyErr_Occurred() ) {

if ( ! module_obj ) {

mlog << Warning << "\npython_dataplane() -> "
mlog << Warning << "\npickle_dataplane() -> "
<< "error running python script\n\n";

return ( false );
Expand Down Expand Up @@ -434,6 +434,9 @@ if ( ! data_obj || ! PyDict_Check(data_obj) ) {

if ( use_xarray ) {

mlog << Error << "\npickle_dataplane() -> "
<< "pickling logic is not yet supported for Xarray\n\n";

exit ( 1 );

} else {
Expand Down

0 comments on commit 1b728db

Please sign in to comment.