hg-to-git: avoid raising a string exception
authorMiklos Vajna <vmiklos@frugalware.org>
Sun, 6 Jul 2008 03:15:17 +0000 (05:15 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 6 Jul 2008 06:35:11 +0000 (23:35 -0700)
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>
contrib/hg-to-git/hg-to-git.py

index f68ef725d42cdb1a6082574f9ef3a45d2346c296..25d99411ca5d2ff8d7296cb9a70c6d0bdd0b934a 100755 (executable)
@@ -89,7 +89,7 @@ try:
         if o in ('-v', '--verbose'):
             verbose = True
     if len(args) != 1:
-        raise('params')
+        raise Exception('params')
 except:
     usage()
     sys.exit(1)