Better exit handling.

This commit is contained in:
Jack Jansen 2000-10-12 21:22:26 +00:00
parent de51909d19
commit 6ab2cb6696
2 changed files with 1 additions and 2 deletions

View File

@ -263,7 +263,7 @@ class MkDistrUI(Application):
return
if rv == 1:
self.main.save()
raise self
self._quit()
def save(self, *args):
self.main.save()

View File

@ -308,7 +308,6 @@ def main():
routine(dir, arg, list)
print "All done!"
sys.exit(1)
if __name__ == '__main__':
main()