Browse Source

Use default timeout in get_param directly

pull/309/head
Sebastien Maillard 9 years ago
parent
commit
1a1e6c0821
  1. 4
      dead_mans_switch_client/models/dead_mans_switch_client.py

4
dead_mans_switch_client/models/dead_mans_switch_client.py

@ -57,9 +57,7 @@ class DeadMansSwitchClient(models.AbstractModel):
logger.error('No server configured!') logger.error('No server configured!')
return return
timeout = self.env['ir.config_parameter'].get_param( timeout = self.env['ir.config_parameter'].get_param(
'dead_mans_switch_client.send_timeout')
if not timeout:
timeout = SEND_TIMEOUT
'dead_mans_switch_client.send_timeout', SEND_TIMEOUT)
data = self._get_data() data = self._get_data()
logger.debug('sending %s', data) logger.debug('sending %s', data)
urllib2.urlopen( urllib2.urlopen(

Loading…
Cancel
Save