From 5b0993125fca9641ceed7e969234004496ac52c2 Mon Sep 17 00:00:00 2001 From: "Karl O. Pinc" Date: Tue, 27 Apr 2021 16:20:42 -0500 Subject: [PATCH] Use SetupError name from pgwui_core instead of the old Error --- src/pgwui_server/exceptions.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/pgwui_server/exceptions.py b/src/pgwui_server/exceptions.py index a6af732..19990df 100644 --- a/src/pgwui_server/exceptions.py +++ b/src/pgwui_server/exceptions.py @@ -23,10 +23,7 @@ ''' from pgwui_common import exceptions - - -class Error(exceptions.Error): - pass +from pgwui_common.exceptions import SetupError class ServerInfo(exceptions.Info): @@ -41,19 +38,19 @@ class AutoconfigureConflict(ServerInfo): 'Autoconfigure is True and there is a pyramid.include setting') -class MissingEqualError(Error): +class MissingEqualError(SetupError): def __init__(self, line): super().__init__( 'Expecting text containing an equals (=) sign, but ' f'instead got ({line})') -class BadValueError(Error): +class BadValueError(SetupError): def __init__(self, setting, ex): super().__init__( f'Bad setting value supplied to ({setting}): {ex}') -class BadSettingsAbort(Error): +class BadSettingsAbort(SetupError): def __init__(self): super().__init__('Aborting due to bad setting(s)') -- 2.34.1