hg-to-git: avoid raising a string exception
[gitweb.git] / contrib / hg-to-git / hg-to-git.py
index f68ef725d42cdb1a6082574f9ef3a45d2346c296..25d99411ca5d2ff8d7296cb9a70c6d0bdd0b934a 100755 (executable)
@@ -89,7 +89,7 @@ def getgitenv(user, date):
         if o in ('-v', '--verbose'):
             verbose = True
     if len(args) != 1:
-        raise('params')
+        raise Exception('params')
 except:
     usage()
     sys.exit(1)