mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-15 23:42:37 +03:00
Use ImportError for Python < 3.6 (Closes: !734)
ModuleNotFoundError is a subclass of ImportError, so this should not change anything.
This commit is contained in:
parent
7f5e0bb310
commit
30c654459f
1 changed files with 1 additions and 1 deletions
|
@ -435,7 +435,7 @@ class LibvirtBuildVm(FDroidBuildVm):
|
|||
with libarchive.file_writer(output, 'gnutar', 'gzip') as tar:
|
||||
logging.debug('adding files to box %s ...', output)
|
||||
tar.add_files('metadata.json', 'Vagrantfile', 'box.img')
|
||||
except (ModuleNotFoundError, AttributeError):
|
||||
except (ImportError, AttributeError):
|
||||
with tarfile.open(output, 'w:gz') as tar:
|
||||
logging.debug('adding metadata.json to box %s ...', output)
|
||||
tar.add('metadata.json')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue