From f208e3c39e6205c7a10c17f82976dd365f3750b5 Mon Sep 17 00:00:00 2001 From: DarkPhoenix Date: Thu, 5 Sep 2013 23:41:10 +0400 Subject: [PATCH] Replace all version-selecting calls with single select() --- pyfa.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/pyfa.py b/pyfa.py index 098b87b9a..61b621d29 100755 --- a/pyfa.py +++ b/pyfa.py @@ -29,15 +29,10 @@ if not hasattr(sys, 'frozen'): try: import wxversion - wxversion.ensureMinimal('2.8') - except ImportError: - print "Cannot find wxPython or the installed wxPython version doesn't meet the min. requirements.\nYou can download wxPython (2.8) from http://www.wxpython.org/" - sys.exit(1) - - try: wxversion.select('2.8') - except wxversion.VersionError: - print("Unable to select wxpython 2.8, attempting to continue anyway") + except (ImportError, wxversion.VersionError): + print "Cannot find wxPython or the installed wxPython version doesn't meet requirements.\nYou can download wxPython (2.8) from http://www.wxpython.org/" + sys.exit(1) try: import sqlalchemy