Created
November 21, 2013 19:57
-
-
Save mrvdb/7588470 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=== modified file 'asterisk_click2dial/asterisk_click2dial.py' | |
--- asterisk_click2dial/asterisk_click2dial.py 2013-10-12 23:17:22 +0000 | |
+++ asterisk_click2dial/asterisk_click2dial.py 2013-11-21 19:37:30 +0000 | |
@@ -235,8 +235,8 @@ | |
ast_manager = Manager.Manager((ast_server.ip_address, ast_server.port), ast_server.login, ast_server.password) | |
except Exception, e: | |
_logger.error("Error in the Originate request to Asterisk server %s" % ast_server.ip_address) | |
- _logger.error("Here is the detail of the error : %s" % e.strerror) | |
- raise orm.except_orm(_('Error :'), _("Problem in the request from OpenERP to Asterisk. Here is the detail of the error: %s." % e.strerror)) | |
+ _logger.error("Here is the detail of the error : %s" % unicode(e)) | |
+ raise orm.except_orm(_('Error :'), _("Problem in the request from OpenERP to Asterisk. Here is the detail of the error: %s." % unicode(e))) | |
return False | |
return (user, ast_server, ast_manager) | |
@@ -516,4 +516,3 @@ | |
_columns = { | |
'asterisk_server_ids': fields.one2many('asterisk.server', 'company_id', 'Asterisk servers', help="List of Asterisk servers.") | |
} | |
- | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment