diff options
author | wbond <will@wbond.net> | 2018-04-17 15:12:05 -0400 |
---|---|---|
committer | wbond <will@wbond.net> | 2018-04-17 15:12:05 -0400 |
commit | f8a8be0def63448866dbed903b300ef9cde4a482 (patch) | |
tree | 864a12e59859ce4282df51a713847e43ea96e920 /dev | |
parent | 8fec4d301c3e15eb9a2900c45991ec4d69775197 (diff) | |
download | asn1crypto-f8a8be0def63448866dbed903b300ef9cde4a482.tar.gz |
tar fixes
Diffstat (limited to 'dev')
-rw-r--r-- | dev/deps.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/dev/deps.py b/dev/deps.py index 8b48abe..31c1b67 100644 --- a/dev/deps.py +++ b/dev/deps.py @@ -393,8 +393,11 @@ def _stage_requirements(deps_dir, path): continue for ti, path in members: mf = tf.extractfile(ti) - with open(os.path.join(deps_dir, path), 'wb') as f: - f.write(mf.read()) + if mf: + with open(os.path.join(deps_dir, path), 'wb') as f: + f.write(mf.read()) + else: + print('No file for %s' % ti.name) finally: if tf: tf.close() |