hg-to-git: avoid raising a string exception
This fixes the following warning: hg-to-git.py:92: DeprecationWarning: raising a string exception is deprecated Signed-off-by: Miklos Vajna <vmiklos@frugalware.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
f45ed32c40
commit
6376cffaeb
@ -89,7 +89,7 @@ try:
|
|||||||
if o in ('-v', '--verbose'):
|
if o in ('-v', '--verbose'):
|
||||||
verbose = True
|
verbose = True
|
||||||
if len(args) != 1:
|
if len(args) != 1:
|
||||||
raise('params')
|
raise Exception('params')
|
||||||
except:
|
except:
|
||||||
usage()
|
usage()
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
Loading…
Reference in New Issue
Block a user