vscode debug AttributeError: 'NoneType' object has no attribute
This commit is contained in:
@@ -113,8 +113,11 @@ class OutLogger(object):
|
||||
self.log.write(msg)
|
||||
|
||||
def flush(self):
|
||||
if 'flush' in dir(self.term):
|
||||
self.term.flush()
|
||||
if 'flush' in dir(self.log):
|
||||
self.log.flush()
|
||||
if 'fileno' in dir(self.log):
|
||||
os.fsync(self.log.fileno())
|
||||
|
||||
def close(self):
|
||||
|
||||
Reference in New Issue
Block a user