diff options
| author | Abhilash Raj | 2014-09-19 06:59:12 +0530 |
|---|---|---|
| committer | Abhilash Raj | 2014-09-19 06:59:12 +0530 |
| commit | 6dd2ac32ee1f1e8f588c08fd5363f0f794d0a6b1 (patch) | |
| tree | bf68d953616cd85bc14d3dee866998272fdfb506 /src/mailman/database/types.py | |
| parent | 917c7fab696151743e4765560d55565ec8e8e38e (diff) | |
| download | mailman-6dd2ac32ee1f1e8f588c08fd5363f0f794d0a6b1.tar.gz mailman-6dd2ac32ee1f1e8f588c08fd5363f0f794d0a6b1.tar.zst mailman-6dd2ac32ee1f1e8f588c08fd5363f0f794d0a6b1.zip | |
Diffstat (limited to 'src/mailman/database/types.py')
| -rw-r--r-- | src/mailman/database/types.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mailman/database/types.py b/src/mailman/database/types.py index 81721781d..a6f0b32ca 100644 --- a/src/mailman/database/types.py +++ b/src/mailman/database/types.py @@ -49,9 +49,7 @@ class Enum(TypeDecorator): def process_bind_param(self, value, dialect): if value is None: return None - if not isinstance(value, self.enum): - raise ValueError("{} must be a value of the {} enum".format( - value, self.enum.__name__)) + return value.value |
