nickmoeck/OpenStatus — Issue #2: Something wrong with sys.stderr.write()
Author: tonkla
Created: 2011-11-05 10:17:42+00:00
State: open

openstatus-server at line 201

200: except sqlite3.OperationalError, msg:
201: sys.stderr.write(msg, "\n")

raised:
TypeError: function takes exactly 1 argument (2 given)

if change it to 'sys.stderr.write(msg + "\n")' it raised:
TypeError: unsupported operand type(s) for +: 'OperationalError' and 'str'

if change it to 'sys.stderr.write(msg)' it raised:
TypeError: expected a character buffer object