Skip to content
Snippets Groups Projects
Commit 02e18c16 authored by jkerdreu's avatar jkerdreu
Browse files

tools.parse_uuid()

git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/branches/0.7@2316 b32b6428-25c9-4566-ad07-03861ab6144f
parent 95ff3a89
No related branches found
No related tags found
No related merge requests found
...@@ -56,7 +56,9 @@ if __name__ == '__main__': ...@@ -56,7 +56,9 @@ if __name__ == '__main__':
try: try:
addr = None addr = None
if len(sys.argv) > 1: if len(sys.argv) > 1:
addr = sys.argv[-1] addr = tools.parse_uuid(sys.argv[-1])
if not addr:
print("Wrong address")
main(addr) main(addr)
except KeyboardInterrupt: except KeyboardInterrupt:
pass pass
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment