lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Muir <rcm...@gmail.com>
Subject Re: svn commit: r1389334 - in /lucene/dev/trunk: ./ dev-tools/ dev-tools/scripts/smokeTestRelease.py
Date Mon, 24 Sep 2012 13:38:05 GMT
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 ?

-- 
lucidworks.com

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


Mime
View raw message