Random traceback

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • user@domain.invalid

    Random traceback

    Is there any condition that would cause the following traceback:
    +++++++++++++++ +++++
    Traceback (innermost last):
    File "/tmp/multimeter.py", line 157, in ?
    myLogger.logMes sage(message)
    File "/tmp/Logger.py", line 46, in logMessage
    self.__logToSys log__(message)
    File "/tmp/Logger.py", line 85, in __logToSyslog__
    syslog.syslog(" %s" %reading)
    TypeError: [priority,] message string
    +++++++++++++++ +++++

  • Gerrit Holl

    #2
    Re: Random traceback

    user@domain.inv alid wrote:[color=blue]
    > Is there any condition that would cause the following traceback:
    > +++++++++++++++ +++++
    > Traceback (innermost last):
    > File "/tmp/multimeter.py", line 157, in ?
    > myLogger.logMes sage(message)
    > File "/tmp/Logger.py", line 46, in logMessage
    > self.__logToSys log__(message)
    > File "/tmp/Logger.py", line 85, in __logToSyslog__
    > syslog.syslog(" %s" %reading)
    > TypeError: [priority,] message string
    > +++++++++++++++ +++++[/color]

    It seems like message is not a string...

    yours,
    Gerrit.

    --
    141. If a man's wife, who lives in his house, wishes to leave it,
    plunges into debt, tries to ruin her house, neglects her husband, and is
    judicially convicted: if her husband offer her release, she may go on her
    way, and he gives her nothing as a gift of release. If her husband does
    not wish to release her, and if he take another wife, she shall remain as
    servant in her husband's house.
    -- 1780 BC, Hammurabi, Code of Law
    --
    Asperger's Syndrome - a personal approach:


    Comment

    Working...