Remove unneeded + to concatenate string

This commit is contained in:
Akim Juillerat
2018-11-15 16:34:57 +01:00
parent 0b9574f3cc
commit d2b16d8a7b

View File

@@ -133,9 +133,8 @@ class PingenDocument(models.Model):
'\n%s') % (self.name, e) '\n%s') % (self.name, e)
except Exception as e: except Exception as e:
_logger.exception( _logger.exception(
'Unexpected Error when updating ' + 'Unexpected Error when updating the status of pingen.document '
'the status of pingen.document %s: ' % '%s: ' % self.id)
self.id)
error_msg = _('Unexpected Error when updating the ' error_msg = _('Unexpected Error when updating the '
'status of Document %s') % self.name 'status of Document %s') % self.name
finally: finally:
@@ -216,14 +215,12 @@ class PingenDocument(models.Model):
self.pingen_color) self.pingen_color)
except ConnectionError: except ConnectionError:
_logger.exception( _logger.exception(
'Connection Error when asking for sending ' + 'Connection Error when asking for sending Pingen Document %s '
'Pingen Document %s to %s.' % 'to %s.' % (self.id, pingen.url))
(self.id, pingen.url))
raise raise
except APIError: except APIError:
_logger.exception( _logger.exception(
'API Error when asking for sending ' + 'API Error when asking for sending Pingen Document %s to %s.' %
'Pingen Document %s to %s.' %
(self.id, pingen.url)) (self.id, pingen.url))
raise raise
self.write( self.write(
@@ -231,8 +228,8 @@ class PingenDocument(models.Model):
'state': 'sendcenter', 'state': 'sendcenter',
'post_id': post_id}) 'post_id': post_id})
_logger.info( _logger.info(
'Pingen Document %s: asked for' + 'Pingen Document %s: asked for sending to %s' % (
'sending to %s' % (self.id, pingen.url)) self.id, pingen.url))
return True return True
def ask_pingen_send(self): def ask_pingen_send(self):
@@ -280,8 +277,7 @@ class PingenDocument(models.Model):
raise raise
except APIError: except APIError:
_logger.exception( _logger.exception(
'API Error when asking for sending ' + 'API Error when asking for sending Pingen Document %s to %s.' %
'Pingen Document %s to %s.' %
(self.id, pingen.url)) (self.id, pingen.url))
raise raise
country = self.env['res.country'].search( country = self.env['res.country'].search(