redirect to sderr with print
This commit is contained in:
parent
2105fb0d93
commit
861a52c3ed
|
@ -46,8 +46,7 @@ i18n.init()
|
||||||
|
|
||||||
def send_error(error_message):
|
def send_error(error_message):
|
||||||
''' Writes error message to stderr and exits'''
|
''' Writes error message to stderr and exits'''
|
||||||
sys.stderr.write(error_message + '\n')
|
print >> sys.stderr, error_message
|
||||||
sys.stderr.flush()
|
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue