mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-04-07 13:40:36 +02:00
import: pypi: Gracefully handle wrong argument counts.
* guix/scripts/import/pypi.scm (guix-import-pypi): Use 'leave' to handle cases where ARGS has zero or two or more elements.
This commit is contained in:
@@ -84,4 +84,8 @@ Import and convert the PyPI package for PACKAGE-NAME.\n"))
|
||||
(unless sexp
|
||||
(leave (_ "failed to download meta-data for package '~a'~%")
|
||||
package-name))
|
||||
sexp)))))
|
||||
sexp))
|
||||
(()
|
||||
(leave (_ "too few arguments~%")))
|
||||
((many ...)
|
||||
(leave (_ "too many arguments~%"))))))
|
||||
|
||||
Reference in New Issue
Block a user