Using the 'gettext' as oppose to '_', which is not defined in the file

pull/29/head
Ashesh Vashi 2020-04-08 12:29:11 +05:30
parent 073e310a5a
commit 7f0847b95d
1 changed files with 1 additions and 1 deletions

View File

@ -1448,7 +1448,7 @@ class ServerNode(PGChildNodeView):
info=gettext('WAL replay paused'),
data={'in_recovery': True, 'wal_pause': pause}
)
return gone(errormsg=_('Please connect the server.'))
return gone(errormsg=gettext('Please connect the server.'))
except Exception as e:
current_app.logger.error(
'WAL replay pause/resume failed'