update-python-libraries: handle other format

This commit is contained in:
Frederik Rietdijk 2019-10-16 11:39:59 +02:00
parent bff8343481
commit 7181aca6d9

View File

@ -194,6 +194,8 @@ def _determine_extension(text, fetcher):
src_format = 'setuptools'
elif src_format == 'flit':
raise ValueError("Don't know how to update a Flit package.")
elif src_format == 'other':
raise ValueError("Don't know how to update a format='other' package.")
extension = FORMATS[src_format]
elif fetcher == 'fetchurl':
@ -326,4 +328,4 @@ def main():
if __name__ == '__main__':
main()
main()