commit 0b11c4abfb4782c120cf41c2129b9819e731c37d parent f0c4a784b4bc35049ab923fd68fc99c215e8e99b Author: Natalie Pendragon <natpen@natpen.net> Date: Fri, 6 Nov 2020 08:44:20 -0500 Check for null input in new strip_control_chars function Diffstat:
M | gus/lib/logging.py | | | 2 | ++ |
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/gus/lib/logging.py b/gus/lib/logging.py @@ -29,4 +29,6 @@ def handle_arguments(args): def strip_control_chars(s): + if not s: + return "" return "".join(i for i in s if 31 < ord(i) < 127)