Does this handle encoding errors? If not, call self.param_execute()
and change the function to take a tuple, not a UploadDataLine instance.
def get_sname(self, udl):
sname = udl.tuples[0].strip()
- self.execute(SNAME_EXISTS_QUERY, (sname,))
+ self.uh.execute(SNAME_EXISTS_QUERY, (sname,))
if self.cur.fetchone() is None:
raise upcen_ex.UnknownSnameError(
udl.lineno,
except upcen_ex.UnknownStatusCode as err:
errors.append(err)
else:
- self.param_execute(
+ self.uh.execute(
INSERT_STMT, (sname, date, self.group, status))
col -= 1