[chirp_devel] [PATCH 12/17] Use logging in idrp.py (#2347)
Zachary T Welch
Wed Mar 4 21:15:08 PST 2015
# HG changeset patch
# User Zachary T Welch <zach at mandolincreekfarm.com>
# Fake Node ID 03cbbe8e442df0f3fd004a5c00ae4ff81329a2b0
Use logging in idrp.py (#2347)
diff --git a/chirp/drivers/idrp.py b/chirp/drivers/idrp.py
index 3ba3f9b..f7c115d 100644
--- a/chirp/drivers/idrp.py
+++ b/chirp/drivers/idrp.py
@@ -30,7 +30,7 @@ def parse_frames(buf):
start = buf.index("\xfe\xfe")
end = buf[start:].index("\xfd") + start + 1
except Exception:
- print "Unable to parse frames"
+ LOG.error("Unable to parse frames")
break
frames.append(buf[start:end])
More information about the chirp_devel
mailing list