Traceback的信息怎么关掉

初学python,在运行一个例子的时候在屏幕总会打印如下信息:

Traceback (most recent call last):
  File "./xxxx.py", line 7, in ?
    child.expect('assword: ')
  File "/home/expect/expect/expect.py", line 1311, in expect
    return self.expect_list(compiled_pattern_list, timeout, searchwindowsize)
  File "/home/expect/expect/expect.py", line 1325, in expect_list
    return self.expect_loop(searcher_re(pattern_list), timeout, searchwindowsize)
  File "/home/expect/expect/expect.py", line 1396, in expect_loop
    raise EOF (str(e) + '\n' + str(self))
pexpect.EOF: End Of File (EOF) in read_nonblocking(). Exception style platform.

尽管已经注视掉了代码中的import traceback,但还是会打印。

想问一下什么方法能让它不打印出来。这些是什么信息呢?

谢谢