Skip to content

Commit

Permalink
fix undefined variable infos use post_infos instead
Browse files Browse the repository at this point in the history
  • Loading branch information
yvaucher committed Jul 4, 2014
1 parent 97208e1 commit a431778
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pingen/pingen_document.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ def _update_post_infos(self, cr, uid, document, pingen, context=None):
country_ids = self.pool.get('res.country').search(
cr, uid, [('code', '=', post_infos['country'])], context=context)

send_date = pingen_datetime_to_utc(infos['date'])
send_date = pingen_datetime_to_utc(post_infos['date'])

vals = {
'post_status': POST_SENDING_STATUS[post_infos['status']],
Expand Down Expand Up @@ -417,8 +417,8 @@ def update_post_infos(self, cr, uid, ids, context=None):

except:
_logger.exception(
'Unexcepted Error when updating the status of pingen.document %s: ' %
document.id)
'Unexcepted Error when updating the status of pingen.document %s: ' %
document.id)
raise osv.except_osv(
_('Error'),
_('Unexcepted Error when updating the status of Document %s') % document.name)
Expand Down

0 comments on commit a431778

Please sign in to comment.