Commit 23b4ab52 authored by Gary Wong's avatar Gary Wong
Browse files

Fix bug where debug mode would fail for do_method with URI but no module.

parent 07648bc9
...@@ -117,7 +117,10 @@ def PassPhraseCB(v, prompt1='Enter passphrase:', prompt2='Verify passphrase:'): ...@@ -117,7 +117,10 @@ def PassPhraseCB(v, prompt1='Enter passphrase:', prompt2='Verify passphrase:'):
# #
def do_method(module, method, params, URI=None, quiet=False): def do_method(module, method, params, URI=None, quiet=False):
if debug: if debug:
if module:
print module + " " + method + " " + str(params); print module + " " + method + " " + str(params);
else:
print URI + " " + method + " " + str(params);
pass pass
if not os.path.exists(CERTIFICATE): if not os.path.exists(CERTIFICATE):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment