Message93694
| Author |
rszefler |
| Recipients |
rszefler |
| Date |
2009年10月07日.12:42:36 |
| SpamBayes Score |
1.4104051e-11 |
| Marked as misclassified |
No |
| Message-id |
<1254919358.82.0.721761611674.issue7077@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Trying to .emit() a Unicode string causes an awkward exception to be thrown:
Traceback (most recent call last):
File "/usr/lib/python2.5/logging/handlers.py", line 672, in emit
self.socket.sendto(msg, self.address)
TypeError: sendto() takes exactly 3 arguments (2 given)
The issue is fixed simply by adding some sort of encoding coercion
before the sendto, for example:
if type(msg)==unicode: msg=msg.encode('utf-8') |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2009年10月07日 12:42:39 | rszefler | set | recipients:
+ rszefler |
| 2009年10月07日 12:42:38 | rszefler | set | messageid: <1254919358.82.0.721761611674.issue7077@psf.upfronthosting.co.za> |
| 2009年10月07日 12:42:37 | rszefler | link | issue7077 messages |
| 2009年10月07日 12:42:36 | rszefler | create |
|