Fix return value.

This commit is contained in:
Yuxin Wang 2018-10-13 18:47:18 -04:00
parent 93a63adbcd
commit 269dc00445

View file

@ -112,7 +112,7 @@ class PeerTerminal(aiocmd.Cmd):
async def do_list_files(self, arg):
try:
await self._peer.list_file()
file_list_dict = await self._peer.list_file()
except TrackerNotConnectedError:
print('Tracker is not connected, try \'connect <tracker_ip> <tracker_port>\' to connect.')
except (ConnectionError, RuntimeError, IncompleteReadError):