projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c91d2d
)
debian/bin/genorig.py: Use assert rather than RuntimeError
author
Ian Jackson
<ian.jackson@eu.citrix.com>
Thu, 22 Feb 2018 18:13:57 +0000
(18:13 +0000)
committer
Hans van Kranenburg
<hans@knorrie.org>
Thu, 22 Feb 2018 20:06:56 +0000
(21:06 +0100)
That way, bad usage prints something slightly less opaque.
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
debian/bin/genorig.py
patch
|
blob
|
history
diff --git
a/debian/bin/genorig.py
b/debian/bin/genorig.py
index 8128a33ee1ff12b12783f78e0bd613375228cc61..c0f2846f1cb0a1264f4c1875679ee2023c836d11 100755
(executable)
--- a/
debian/bin/genorig.py
+++ b/
debian/bin/genorig.py
@@
-93,6
+93,5
@@
if __name__ == '__main__':
p.add_option('-t', '--tag', dest='tag')
p.add_option('-V', '--override-version', dest='override_version')
options, args = p.parse_args()
- if len(args) != 1:
- raise RuntimeError
+ assert(len(args) == 1)
Main(options, *args)()