Skip to content

Commit

Permalink
Silence data recovery output
Browse files Browse the repository at this point in the history
- with changing 'client.run' to 'client.proxy.run' (9ecc538), and moving
  _format_response to the cli module, any output from data recovery is
  unformatted (i.e. a dict response like '{"id": 1}' would be displayed
  which is not very comprehensible)
- instead, don't show any output (this is not ideal since running a
  command in recovery mode does not have the same output as running it the
  regular way; instead the Client.safely_run() interface should be
  called)
  • Loading branch information
pylipp committed Oct 27, 2019
1 parent 9ecc538 commit a233f33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion financeager/offline.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def _recover_data(client, content):
while len(content):
data = content.pop()
try:
logger.info(client.proxy.run(**data))
client.proxy.run(**data)
except Exception as e:
logger.exception(e)
return data
Expand Down

0 comments on commit a233f33

Please sign in to comment.