def _check_cmd(call):
 if (call['retcode'] != 0):
  comment = ''
  std_err = call.get('stderr')
  std_out = call.get('stdout')
  if std_err:
   comment += std_err
  if std_out:
   comment += std_out
  raise CommandExecutionError('Error running command: {0}'.format(comment))
 return call

def _check_cmd ( call ) : if ( call [ 'retcode' ] != 0 ) : comment = '' std_err = call . get ( 'stderr' ) std_out = call . get ( 'stdout' ) if std_err : comment += std_err if std_out : comment += std_out raise CommandExecutionError ( 'Error running command: {0}' . format ( comment ) ) return call
check the output of the cmd .