Fixed pep8 issue

pull/29/head
Ashesh Vashi 2020-04-08 14:34:34 +05:30
parent aa7ced4ef1
commit 775e61c248
1 changed files with 7 additions and 8 deletions

View File

@ -662,16 +662,15 @@ class CastView(PGChildNodeView):
)
status, res = self.conn.execute_scalar(sql)
if not status:
return internal_server_error(
gettext("Could not generate reversed engineered SQL for the "
"cast.\n\n{0}").format(res)
)
return internal_server_error(gettext(
"Could not generate reversed engineered SQL for the cast."
) + "\n\n{0}".format(res))
if res is None:
return gone(
gettext("Could not generate reversed engineered SQL for the "
"cast node.\n")
)
return gone(gettext(
"Could not generate reversed engineered SQL for the cast \
node."
))
return ajax_response(response=res)