Commit 891f0d0f authored by Michael Büsch's avatar Michael Büsch

print helper: Ignore runtime errors

Signed-off-by: Michael Büsch's avatarMichael Buesch <m@bues.ch>
parent 4e1a03f8
......@@ -60,11 +60,14 @@ class Logging(object):
@classmethod
def __print(cls, stream, text):
if cls.prefix:
stream.write(cls.prefix)
stream.write(text)
stream.write("\n")
stream.flush()
try:
if cls.prefix:
stream.write(cls.prefix)
stream.write(text)
stream.write("\n")
stream.flush()
except RuntimeError:
pass #Ignore
@classmethod
def printDebug(cls, text):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment