mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Add numerous missing checks to ensure objects really exist when we think they do. Fixes #2427
This commit is contained in:
committed by
Dave Page
parent
04ce72a6ae
commit
e9da157cc7
@@ -441,6 +441,12 @@ SELECT EXISTS(
|
||||
if not status:
|
||||
return internal_server_error(errormsg=res)
|
||||
|
||||
|
||||
if len(res['rows']) == 0:
|
||||
return gone(
|
||||
_("Could not find the object on the server.")
|
||||
)
|
||||
|
||||
row = res['rows'][0]
|
||||
|
||||
status, res= self.conn.execute_dict(
|
||||
|
||||
Reference in New Issue
Block a user