Commit 97707030 authored by Dionysis Grigoropoulos's avatar Dionysis Grigoropoulos Committed by Christos Stavrakakis
Browse files

versioning: Catch an assertion error

* Catch an uncaught assertion error
* Minor pep8 fixes
* Update copyright date
parent 42e3ad26
#!/usr/bin/env python
# Copyright (C) 2012, 2013 GRNET S.A. All rights reserved.
# Copyright (C) 2012-2014 GRNET S.A. All rights reserved.
# Redistribution and use in source and binary forms, with or
# without modification, are permitted provided that the following
......@@ -473,7 +473,7 @@ def main():
arg = sys.argv[1]
assert arg == "python" or arg == "debian"
except IndexError:
except (IndexError, AssertionError):
raise ValueError("A single argument, 'python' or 'debian is required")
if arg == "python":
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment