[snipped alot of codes that doesn't mean much ] if you want to check for exception then it goes like this
try: <put your code here which fails on certain exception like maybe IOError> catch IOError: <put a code to do something when IOError is raised> sorry i won't bother to read your code because i can't read, i think i am tired and need to go to bed. ;-) -- cheers, Ishwor Gurung -- http://mail.python.org/mailman/listinfo/python-list