From dec91dfe8d5a718b5a7328b6c202be4484ec5f38 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Fri, 19 Oct 2012 13:13:52 -0400 Subject: [PATCH] zephyr_mirror: Support empty zsigs. (imported from commit 6a9fd78d928ebbc9442b3f99d2730f09309556bb) --- zephyr_mirror.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/zephyr_mirror.py b/zephyr_mirror.py index c50878e..9bef50f 100755 --- a/zephyr_mirror.py +++ b/zephyr_mirror.py @@ -195,7 +195,11 @@ def process_loop(log): continue def process_notice(notice, log): - zsig, body = notice.message.split("\x00", 1) + try: + zsig, body = notice.message.split("\x00", 1) + except ValueError: + body = notice.message + zsig = "" is_personal = False is_huddle = False