IGN:Make handling of missing formats more robust

This commit is contained in:
Kovid Goyal 2008-09-01 22:40:53 -07:00
parent 653bd0e3ed
commit ac2d8bc12b

View File

@ -82,7 +82,7 @@ class cmd_commit(_cmd_commit):
def run(self, message=None, file=None, verbose=False, selected_list=None, def run(self, message=None, file=None, verbose=False, selected_list=None,
unchanged=False, strict=False, local=False, fixes=None, unchanged=False, strict=False, local=False, fixes=None,
author=None, show_diff=False): author=None, show_diff=False, exclude=None):
nick = config = bug = action = None nick = config = bug = action = None
if message: if message:
try: try:
@ -97,7 +97,7 @@ class cmd_commit(_cmd_commit):
ret = _cmd_commit.run(self, message=message, file=file, verbose=verbose, ret = _cmd_commit.run(self, message=message, file=file, verbose=verbose,
selected_list=selected_list, unchanged=unchanged, selected_list=selected_list, unchanged=unchanged,
strict=strict, local=local, fixes=fixes, strict=strict, local=local, fixes=fixes,
author=author, show_diff=show_diff) author=author, show_diff=show_diff, exclude=exclude)
if message and bug and action and nick and config: if message and bug and action and nick and config:
self.close_bug(bug, action, url, config) self.close_bug(bug, action, url, config)
return ret return ret