From e5a6613cc6c9f3dc11e0251269ba3f7d0d2fc7b2 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 19 Nov 2014 16:40:39 +0100 Subject: [PATCH] bam cli: correct arg handling --- client/cli/bam.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/client/cli/bam.py b/client/cli/bam.py index 3bd472a..785ea5d 100755 --- a/client/cli/bam.py +++ b/client/cli/bam.py @@ -230,7 +230,7 @@ class bam_session: paths_add[fn_rel] = fn_abs # TESTING ONLY - fn_abs_remote = os.path.join("pro", fn_rel) + fn_abs_remote = fn_rel paths_remap_subset_add[fn_rel] = fn_abs_remote @@ -357,8 +357,7 @@ class bam_commands: ID_PAYLOAD = 2 head = r.raw.read(4) if head != b'BAM\0': - print("Bad header...") - return + fatal("bad header from server") while True: msg_type, msg_size = struct.unpack("