Don't use print
This commit is contained in:
parent
314ea65427
commit
f05d866d84
|
@ -10,13 +10,13 @@ def get_app_class(template):
|
|||
|
||||
try:
|
||||
for file in os.listdir(path):
|
||||
print(file)
|
||||
self.console.write(file)
|
||||
except OSError as e:
|
||||
try:
|
||||
os.stat(path)
|
||||
print(path)
|
||||
self.console.write(path)
|
||||
except OSError:
|
||||
print(f"ls: cannot access '{path}': No such file or directory")
|
||||
self.console.write(f"ls: cannot access '{path}': No such file or directory")
|
||||
|
||||
self.exit()
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user