From 1a1e6c08211655f49a786b987d18992441d9e887 Mon Sep 17 00:00:00 2001 From: Sebastien Maillard Date: Thu, 10 Dec 2015 19:27:12 +0800 Subject: [PATCH] Use default timeout in get_param directly --- dead_mans_switch_client/models/dead_mans_switch_client.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dead_mans_switch_client/models/dead_mans_switch_client.py b/dead_mans_switch_client/models/dead_mans_switch_client.py index fa23c1da3..2d23ef05e 100644 --- a/dead_mans_switch_client/models/dead_mans_switch_client.py +++ b/dead_mans_switch_client/models/dead_mans_switch_client.py @@ -57,9 +57,7 @@ class DeadMansSwitchClient(models.AbstractModel): logger.error('No server configured!') return 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() logger.debug('sending %s', data) urllib2.urlopen(