From: Miklos Vajna Date: Sun, 6 Jul 2008 03:15:17 +0000 (+0200) Subject: hg-to-git: avoid raising a string exception X-Git-Tag: v1.6.0-rc0~132 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6376cffaebe40947eea9afb4ae6df05a6ac59ae8;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/contrib/hg-to-git/hg-to-git.py b/contrib/hg-to-git/hg-to-git.py index f68ef725d..25d99411c 100755 --- a/contrib/hg-to-git/hg-to-git.py +++ b/contrib/hg-to-git/hg-to-git.py @@ -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)