X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=hippotat.git;a=blobdiff_plain;f=hippotat%2Fslip.py;h=f13513787857ce7339f91b9dea9d94051fd200fc;hp=7dbe3162b8fb4a2347a88f8e61cfe51b9f611300;hb=e8fcf3b7494f214242f8a0a8fe9c72fe7f7a27b1;hpb=dd6665eea9fc248770b757a4314c3c2b8de7cc86 diff --git a/hippotat/slip.py b/hippotat/slip.py index 7dbe316..f135137 100644 --- a/hippotat/slip.py +++ b/hippotat/slip.py @@ -27,7 +27,7 @@ def decode(data): #print('ESC... %o' % ck) if ck == esc_esc[0]: pdata += esc elif ck == esc_end[0]: pdata += end - else: raise ValueError('invalid SLIP escape') + else: raise ValueError('invalid SLIP escape 0%o %#x' % (ck, ck)) packet = packet[eix+2 : ] out.append(pdata) #print('DECODED ', repr(out))