Opened 9 years ago

Closed 4 years ago

#6295 defect closed wontfix (wontfix)

KeyError with visibility value in oscar.py _cbRequestSSI

Reported by: logik Owned by:
Priority: normal Milestone:
Component: words Keywords:
Cc: Ralph Meijer Branch:
Author:

Description

I'm getting a KeyError on this line of code in oscar.py

visibility = {'\xff\xff\xff\xff':'all','\x00\x00\x00\x04':'notaim'}[tlvs[0xcb]]

exceptions.KeyError: '\x00\x00\xff\xff'

in: twisted/words/protocols/oscar.py

Any idea why I'm getting some unknown visibility value?

Change History (4)

comment:1 Changed 9 years ago by DefaultCC Plugin

Cc: Ralph Meijer added

comment:2 Changed 9 years ago by logik

For now, I did this as a work around

visibility = {'\xff\xff\xff\xff':'all','\x00\x00\x00\x04':'notaim','\x00\x00\xff\xff': 'Unknown'}[tlvs[0xcb]]

comment:3 Changed 9 years ago by therve

Milestone: Twisted-12.3

comment:4 Changed 4 years ago by Craig Rodrigues

Resolution: wontfix
Status: newclosed

oscar was removed in ticket:9024

Note: See TracTickets for help on using tickets.