mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fix PEP8 issues with latest pycodestyle (#6636)
This commit is contained in:
@@ -446,8 +446,8 @@ def compare_database(params):
|
||||
params['target_sid'])
|
||||
if not status:
|
||||
socketio.emit('compare_database_failed',
|
||||
error_msg.json if type(
|
||||
error_msg) == Response else error_msg,
|
||||
error_msg.json if isinstance(
|
||||
error_msg, Response) else error_msg,
|
||||
namespace=SOCKETIO_NAMESPACE, to=request.sid)
|
||||
return error_msg
|
||||
|
||||
@@ -585,8 +585,8 @@ def compare_schema(params):
|
||||
params['target_sid'])
|
||||
if not status:
|
||||
socketio.emit('compare_schema_failed',
|
||||
error_msg.json if type(
|
||||
error_msg) == Response else error_msg,
|
||||
error_msg.json if isinstance(
|
||||
error_msg, Response) else error_msg,
|
||||
namespace=SOCKETIO_NAMESPACE, to=request.sid)
|
||||
return error_msg
|
||||
|
||||
|
Reference in New Issue
Block a user