mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed code smell 'String literals should not be duplicated'.
This commit is contained in:
committed by
Akshay Joshi
parent
e226b2fa75
commit
3984544bdb
@@ -30,7 +30,8 @@ from pgadmin.utils.exception import CryptKeyMissing
|
||||
from pgadmin.tools.schema_diff.node_registry import SchemaDiffRegistry
|
||||
from psycopg2 import Error as psycopg2_Error, OperationalError
|
||||
from pgadmin.browser.server_groups.servers.utils import is_valid_ipaddress
|
||||
from pgadmin.utils.constants import UNAUTH_REQ, MIMETYPE_APP_JS
|
||||
from pgadmin.utils.constants import UNAUTH_REQ, MIMETYPE_APP_JS, \
|
||||
SERVER_CONNECTION_CLOSED
|
||||
|
||||
|
||||
def has_any(data, keys):
|
||||
@@ -1224,9 +1225,7 @@ class ServerNode(PGChildNodeView):
|
||||
else:
|
||||
return make_json_response(data={
|
||||
'status': False,
|
||||
'result': gettext(
|
||||
'Not connected to the server or the connection to the'
|
||||
' server has been closed.')})
|
||||
'result': SERVER_CONNECTION_CLOSED})
|
||||
|
||||
def create_restore_point(self, gid, sid):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user