lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <luc...@mikemccandless.com>
Subject Re: svn commit: r1389334 - in /lucene/dev/trunk: ./ dev-tools/ dev-tools/scripts/smokeTestRelease.py
Date Mon, 24 Sep 2012 15:23:54 GMT
On Mon, Sep 24, 2012 at 9:38 AM, Robert Muir <rcmuir@gmail.com> wrote:
> On Mon, Sep 24, 2012 at 8:31 AM,  <mikemccand@apache.org> wrote:
>>  import tarfile
>>  import threading
>> +import traceback
>>  import subprocess
>>  import signal
> ...
>> @@ -112,7 +113,14 @@ def getHREFs(urlString):
>>        break
>>
>>    links = []
>> -  for subUrl, text in reHREF.findall(urllib.request.urlopen(urlString).read().decode('UTF-8')):
>> +  try:
>> +    html = urllib.request.urlopen(urlString).read().decode('UTF-8')
>> +  except:
>> +    print('\nFAILED to open url %s' % urlString)
>> +    tracekback.print_exc()
>> +    raise
>
> This is a tpyo right? you meant traceback not tracekback ?

Woops yes :)  I'll fix.  Thanks.

Mike McCandless

http://blog.mikemccandless.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message