Posted By

the_coder on 08/12/10


Tagged


Versions (?)

key error


 / Published in: Python
 

  1. """snip dict set"""
  2. #Setting up memory ref.
  3. a404c_config_memory = { '0x18,0x1F' : 'Identification Number Nc',
  4. '0x50,0x57' : 'AAC0 and Cryptogram C0',
  5. }
  6.  
  7. """snip find out the memory"""
  8. #what command is accessing
  9. read_config = a404c_config_memory[self.cmd[2][1]]
  10.  
  11. """error from cmd line
  12. Traceback (most recent call last):
  13. File "decode-traffic.py", line 254, in <module>
  14. i.display()
  15. File "decode-traffic.py", line 209, in display
  16. read_config = a404c_config_memory[self.cmd[2][1]]
  17. KeyError: '0x19'
  18. """

Report this snippet  

You need to login to post a comment.