From 5b3135413d200e58e602a74a6816e48380e53433 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 11 Dec 2007 23:26:05 +0000 Subject: Instead of calling sys.exit when a ParseError occurs in the config constructor, raise a ParseError and make emerge and portageq handle the error. This way consumers of the portage api can handle the ParseError rather than have their application exit. Thanks to lxnay for reporting. svn path=/main/trunk/; revision=8884 --- pym/_emerge/__init__.py | 4 ---- 1 file changed, 4 deletions(-) (limited to 'pym/_emerge/__init__.py') diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index f5aa77631..0bebfef60 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -7188,7 +7188,3 @@ def emerge_main(): if "--pretend" in myopts: display_news_notification(trees) return retval - -if __name__ == "__main__": - retval = emerge_main() - sys.exit(retval) -- cgit v1.2.3-1-g7c22