diff options
author | Ben Brown <ben.brown@codethink.co.uk> | 2017-10-03 12:44:08 +0100 |
---|---|---|
committer | Ben Brown <ben.brown@codethink.co.uk> | 2017-10-03 12:44:08 +0100 |
commit | 2911542da769991274293f333c42418e3533875a (patch) | |
tree | 811542a70bceabf82d3aedff0e817d790022b09f | |
parent | 8a68645e24c199061661ff7afa99cad841a27923 (diff) | |
download | ybd-2911542da769991274293f333c42418e3533875a.tar.gz |
Raise appropriate exception on invalid tar
-rwxr-xr-x | kbas/__main__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kbas/__main__.py b/kbas/__main__.py index b5bde1e..23d251c 100755 --- a/kbas/__main__.py +++ b/kbas/__main__.py @@ -197,7 +197,7 @@ class KeyedBinaryArtifactServer(object): if call(['tar', 'tf', artifact], stdout=fnull): app.log('UPLOAD', 'ERROR: not a valid tarfile:', artifact) - raise + raise TypeError('Not a valid tarfile') checksum = cache.md5(artifact) with open(artifact + '.md5', "a") as f: f.write(checksum) |