comparison flys-backend/contrib/shpimporter/shpimporter.py @ 5077:c5187ab9f571 dami

Fix Syntax Errror
author Andre Heinecke <aheinecke@intevation.de>
date Thu, 21 Feb 2013 09:46:40 +0100
parents d6860fca89e4
children 40dc001594e4
comparison
equal deleted inserted replaced
5075:e34c9687299d 5077:c5187ab9f571
149 if 'OCI:' in connstr: 149 if 'OCI:' in connstr:
150 oracle = True 150 oracle = True
151 try: 151 try:
152 import cx_Oracle as dbapi 152 import cx_Oracle as dbapi
153 raw_connstr=connstr.replace("OCI:", "") 153 raw_connstr=connstr.replace("OCI:", "")
154 except ImportErrror: 154 except ImportError:
155 logger.error("Module cx_Oracle not found in: %s\n" 155 logger.error("Module cx_Oracle not found in: %s\n"
156 "Neccessary to connect to a Oracle Database.\n" 156 "Neccessary to connect to a Oracle Database.\n"
157 "Please refer to the installation " 157 "Please refer to the installation "
158 "documentation." % sys.path) 158 "documentation." % sys.path)
159 return -1 159 return -1

http://dive4elements.wald.intevation.org