Permalink
Browse files

fixed newline output on manage

  • Loading branch information...
1 parent d2df37b commit 9fcfdf9b236ce3acd969628c98cf2c151e0e0c36 @brosner brosner committed Jan 14, 2013
Showing with 4 additions and 1 deletion.
  1. +4 −1 gondor/__main__.py
View
@@ -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]))
@@ -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":

0 comments on commit 9fcfdf9

Please sign in to comment.