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>
Miklos Vajna committed
Jul 6, 2008 at 05:15 UTC
6376cffaebe40947eea9afb4ae6df05a6ac59ae8
1 file changed
+1
-1
contrib/hg-to-git/hg-to-git.py
+1
-1
@@ -89,7 +89,7 @@ try:
89
if o in ('-v', '--verbose'):
90
verbose = True
91
if len(args) != 1:
92
- raise('params')
92
+ raise Exception('params')
93
except:
94
usage()
95
sys.exit(1)