Changeset 755


Ignore:
Timestamp:
Jul 6, 2013, 8:46:57 AM (6 years ago)
Author:
Dominic Hargreaves
Message:

catch errors from wget

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/npemap.org.uk/scripts/generic-python-import/generic_importer.py

    r754 r755  
    152152                        if self.verbose:
    153153                                print "Downloading from %s" % self.url
    154                         os.system("wget --quiet -O currentlist '%s'" % self.url)
     154                        if os.system("wget --quiet -O currentlist '%s'" % self.url) != 0:
     155                                raise Exception("Download from %s failed" % self.url)
    155156                        current_file = "currentlist"
    156157                        if self.verbose:
Note: See TracChangeset for help on using the changeset viewer.