Inherit from the right exception class
authorKarl O. Pinc <kop@karlpinc.com>
Fri, 23 Apr 2021 21:55:21 +0000 (16:55 -0500)
committerKarl O. Pinc <kop@karlpinc.com>
Fri, 23 Apr 2021 21:55:21 +0000 (16:55 -0500)
src/pgwui_upload/exceptions.py
src/pgwui_upload/views/upload.py

index 406cfc67e8012c35e61733edf70790472e340fff..9324d5fd4119bca2f501146f025c64adce9a41c0 100644 (file)
@@ -54,7 +54,7 @@ class CannotInsertError(BadTableError):
         super(CannotInsertError, self).__init__(e, descr, detail)
 
 
-class BadHeadersError(core_ex.PGWUIError):
+class BadHeadersError(core_ex.Error):
     '''The headers in the uploaded file are bad.'''
     def __init__(self, e, descr='', detail=''):
         super(BadHeadersError, self).__init__(e, descr, detail)
index d2e5396ac40cc17f5f686f06a55a1224ea0d671f..344615cabcd7df78b29d3b0b686c55f2214e8a27 100644 (file)
@@ -115,7 +115,7 @@ class TableUploadHandler(BaseTableUploadHandler):
         Validate input needed beyond that required to connect to the db.
 
         Returns:
-          A list of PGWUIError instances
+          A list of pgwui_core.UploadError instances
         '''
         uf = self.uf
         errors = super().val_input()