Skip to content

Commit

Permalink
fixed newline output on manage
Browse files Browse the repository at this point in the history
  • Loading branch information
brosner committed Jan 14, 2013
1 parent d2df37b commit 9fcfdf9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gondor/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,7 @@ def cmd_manage(args, env, config):
handlers = [
http.MultipartPostHandler,
]
pb = None
if operation in ["database:load"]:
if opargs:
filename = os.path.abspath(os.path.expanduser(opargs[0]))
Expand Down Expand Up @@ -684,7 +685,9 @@ def cmd_manage(args, env, config):
response = make_api_call(config, url, params, extra_handlers=handlers)
except HTTPError as e:
api_error(e)
out("\nRunning... ")
if pb is not None:
out("\n")
out("Running... ")
data = json.loads(response.read().decode("utf-8"))

if data["status"] == "error":
Expand Down

0 comments on commit 9fcfdf9

Please sign in to comment.