You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Robert Muir <rc...@gmail.com> on 2012/09/24 15:38:05 UTC
Re: svn commit: r1389334 - in /lucene/dev/trunk: ./ dev-tools/ dev-tools/scripts/smokeTestRelease.py
On Mon, Sep 24, 2012 at 8:31 AM, <mi...@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 ?
--
lucidworks.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
Re: svn commit: r1389334 - in /lucene/dev/trunk: ./ dev-tools/ dev-tools/scripts/smokeTestRelease.py
Posted by Michael McCandless <lu...@mikemccandless.com>.
On Mon, Sep 24, 2012 at 9:38 AM, Robert Muir <rc...@gmail.com> wrote:
> On Mon, Sep 24, 2012 at 8:31 AM, <mi...@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