X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;ds=sidebyside;f=hippotat%2Fslip.py;h=f13513787857ce7339f91b9dea9d94051fd200fc;hb=389236df4bb2ade1e782e1d20295ffde0ee2226b;hp=7dbe3162b8fb4a2347a88f8e61cfe51b9f611300;hpb=b68c0739e0dbabf20117e637b10ac3cf61ebb783;p=hippotat.git 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))