syslog error
mixo
mixo at beth.uniforum.org.za
Mon Jan 28 03:35:05 EST 2002
Here is what I have
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
try:
.
.
.
except TypeError, info:
message = "Error reading from device (%s)(%s)." %(info,buffer)
syslog.syslog(message)
.
.
.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Now, and then I get the follwing error
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
File "/home/mixo/prj/multimeter.8/multiMeter/src/multimeter.py", line
220, in ?
syslog.syslog(message)
TypeError: [priority,] message string
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Why am I getting an error, and why does it only happen sometimes?
Could it be "message" is not defined, and if it isn't, why am I
not getting the error when I try to assign it a value?
Thanks,
Mixo
P.S I am using python 1.5.2
More information about the Python-list
mailing list