'''
def __init__(self, descr='', detail=''):
super().__init__('Notice', '', descr=descr, detail=detail)
+
+
+class CSVError(SQLError):
+ '''
+ Error raised when the csv module raises an error
+
+ descr More description of the error
+ detail Extra HTML describing the error
+ '''
+ def __init__(self, descr='', detail=''):
+ super().__init__('Error while formatting the download',
+ '', descr=descr, detail=detail)
sql_results.append(sql_result)
nextset = cur.nextset()
- self.make_download(sql_results)
+ try:
+ self.make_download(sql_results)
+ except csv.Error as ex:
+ raise sql_ex.CSVError(descr=f'The csv module reports: {ex}')
def factory(self, ue):
'''Make a db loader function from an UploadEngine.