summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcdist2
1 files changed, 1 insertions, 1 deletions
diff --git a/cdist b/cdist
index 2c0f0a5..b9687d7 100755
--- a/cdist
+++ b/cdist
@@ -759,7 +759,7 @@ def notarize_dmg(dmg):
dmg
], capture_output=True)
- last_line = p.stdout.decode('utf-8').splitlines()[-1].split()
+ last_line = [x.strip() for x in p.stdout.decode('utf-8').splitlines() if x.strip()][-1]
if last_line != 'status: Accepted':
print("Could not understand notarytool response")
print(p)