From b843703134a166013518c707fa5a77373f1bf0bf Mon Sep 17 00:00:00 2001 From: Scott Gasch Date: Thu, 5 Aug 2021 14:56:34 -0700 Subject: Adds profanity filter, fixes bugs. --- logging_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'logging_utils.py') diff --git a/logging_utils.py b/logging_utils.py index 0c7d193..a0131b1 100644 --- a/logging_utils.py +++ b/logging_utils.py @@ -269,7 +269,7 @@ class OutputMultiplexer(object): open(filename, 'wb', buffering=0) for filename in filenames ] else: - if self.destination_bitv & OutputMultiplexer.FILENAMES: + if destination_bitv & OutputMultiplexer.FILENAMES: raise ValueError( "Filenames argument is required if bitv & FILENAMES" ) @@ -278,7 +278,7 @@ class OutputMultiplexer(object): if handles is not None: self.h = [handle for handle in handles] else: - if self.destination_bitv & OutputMultiplexer.FILEHANDLES: + if destination_bitv & OutputMultiplexer.Destination.FILEHANDLES: raise ValueError( "Handle argument is required if bitv & FILEHANDLES" ) -- cgit v1.3