Changeset 6825


Ignore:
Timestamp:
Apr 17, 2009, 1:45:02 PM (15 years ago)
Author:
rwilson
Message:

Changes in handling getting a file over the 'net.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/numpy/anuga/utilities/system_tools.py

    r6822 r6825  
    435435    opener = urllib2.build_opener(proxy, authinfo, urllib2.HTTPHandler)
    436436    urllib2.install_opener(opener)
    437     webget = urllib2.urlopen(file_url)
     437    try:
     438        webget = urllib2.urlopen(file_url)
     439    except urllib2.HTTPError:
     440        return False
    438441
    439442    # transfer file to local filesystem
Note: See TracChangeset for help on using the changeset viewer.