exception problem

.:|:. ng at hardlight.couk.com
Fri Apr 14 05:54:43 EDT 2000


  File "/pr0n/getGroup.py", line 58, in ?
    ArticleToFile(s, `i`)
  File "/pr0n/getGroup.py", line 26, in ArticleToFile
    decode(uufn, binfh)
  File "/usr/lib/python1.5/uu.py", line 95, in decode
    raise Error, 'No valid begin line found in input file'
uu.Error: No valid begin line found in input file

from uu import *
decode(infile, outfile)

raise Error, 'No valid begin line found in input file'
uu.Error: No valid begin line found in input file


how do i trap it

i've tried

try:
    decode(infile, outfile)
except uu.error:
    pass

gives me

NameError uu :


tia

Matt





More information about the Python-list mailing list