diff upreckon-vcs @ 91:c62c9bfd614a

Removed import_error It was buggy anyway.
author Oleg Oshmyan <chortos@inbox.lv>
date Mon, 28 Feb 2011 16:05:20 +0000
parents 1fb319ec33af
children 796eb7667fb0 c4dba6d44194
line wrap: on
line diff
--- a/upreckon-vcs	Mon Feb 28 15:32:22 2011 +0000
+++ b/upreckon-vcs	Mon Feb 28 16:05:20 2011 +0000
@@ -4,10 +4,6 @@
 from __future__ import division, with_statement
 import optparse, sys, compat
 
-def import_error(e):
-	say('Error: your installation of Upreckon is incomplete;', str(e).lower() + '.', file=sys.stderr)
-	sys.exit(3)
-
 from compat import *
 
 version = '2.00.0 ($$REV$$)'
@@ -65,10 +61,7 @@
 if options.legacy:
 	compat.pseudobuiltins += 'xrange',
 
-try:
-	import testcases
-except ImportError:
-	import_error(sys.exc_info()[1])
+import testcases
 
 try:
 	from testcases import pause
@@ -89,10 +82,7 @@
 		else:
 			sys.exit('Error: configuration variable pause is not defined and cannot be devised automatically.')
 
-	try:
-		from problem import *
-	except ImportError:
-		import_error(sys.exc_info()[1])
+	from problem import *
 
 	# Support single-problem configurations
 	if globalconf.problems is None: