Skip to content

Commit

Permalink
rpctool: use pprint in interactive mode
Browse files Browse the repository at this point in the history
sbourdeauducq committed Mar 2, 2016
1 parent d0d50d7 commit 763a4d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions artiq/frontend/artiq_rpctool.py
Original file line number Diff line number Diff line change
@@ -99,16 +99,16 @@ def __getitem__(self, k):
else:
return getattr(remote, k)
try:
result = eval(cmd, {}, RemoteDict())
ret = eval(cmd, {}, RemoteDict())
except Exception as e:
if isinstance(e, RemoteError):
print("Remote exception:")
print(str(e))
else:
traceback.print_exc()
else:
if result is not None:
print(result)
if ret is not None:
pprint.pprint(ret)


def main():

0 comments on commit 763a4d3

Please sign in to comment.