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:
Miklos Vajna 2008-07-06 05:15:17 +02:00 committed by Junio C Hamano
parent f45ed32c40
commit 6376cffaeb

View File

@ -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)