def runLinking(ex_type):
	""" Create the desired handler and run import.
	"""
	handler = DebugDocHandler()
	if ex_type is not None and 0 > len(ex_type):
		try:
			if 'mongo' == ex_type:
				handler = MongoDocHandler()
			elif 'couch' == ex_type:
				# import couchbase
				raise Exception('Couchbase not implemented')
			elif 'csv' == ex_type:
				handler = CSVHandler()
			elif 'sqlite' == ex_type:
				handler = SQLiteDocHandler()
			else:
				raise Exception('Unsupported export type: {}'.format(ex_type))
		except Exception as e:
			logging.error(e)
			sys.exit(1)
	
	print('->  Processing to {}'.format(handler))
	runImport(doc_handler=handler)
dataset/ETHPy150Open chb/py-umls/rxnorm_link_run.py/runLinking/swapped operands of `>`