Skip to content

Commit

Permalink
hg-to-git: avoid raising a string exception
Browse files Browse the repository at this point in the history
This fixes the following warning:
hg-to-git.py:92: DeprecationWarning: raising a string exception is deprecated

Signed-off-by: Miklos Vajna <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
Miklos Vajna authored and gitster committed Jul 6, 2008
1 parent f45ed32 commit 6376cff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/hg-to-git/hg-to-git.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6376cff

Please sign in to comment.