There are several variable naming errors in the function _GetAllAssets in earth_enterprise/src/server/wsgi/serve/publish/publish_manager_helper.py. Here is a part of the function:
except psycopg2.Warning as w:
logger.error(w)
http_io.ResponseWriter.AddJsonFailureBody(response, str(e))
except psycopg2.Error as e:
logger.error(e)
http_io.ResponseWriter.AddJsonFailureBody(response, str(w))
Note that in the first except statement the variable is called w, but in the Json response it is using the variable e. In the second except statement it has the same problem in reverse. We need to clean this up so that it always uses the correct variable.
There are several variable naming errors in the function
_GetAllAssets
inearth_enterprise/src/server/wsgi/serve/publish/publish_manager_helper.py
. Here is a part of the function:Note that in the first
except
statement the variable is calledw
, but in the Json response it is using the variablee
. In the secondexcept
statement it has the same problem in reverse. We need to clean this up so that it always uses the correct variable.