Skip to content

Commit 6376cff

Browse files
Miklos Vajnagitster
authored andcommitted
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>
1 parent f45ed32 commit 6376cff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/hg-to-git/hg-to-git.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def getgitenv(user, date):
8989
if o in ('-v', '--verbose'):
9090
verbose = True
9191
if len(args) != 1:
92-
raise('params')
92+
raise Exception('params')
9393
except:
9494
usage()
9595
sys.exit(1)

0 commit comments

Comments
 (0)