handle exceptions...

This commit is contained in:
S.Çağlar Onur
2005-09-19 13:26:56 +00:00
parent 43e5ebb1c6
commit 8ffa27187b
+4
View File
@@ -49,6 +49,10 @@ if __name__ == "__main__":
if not isCached(URI.filename(), spec.source.archiveSHA1): if not isCached(URI.filename(), spec.source.archiveSHA1):
print URI, " -> " , os.path.join(config.archives_dir(), URI.filename()) print URI, " -> " , os.path.join(config.archives_dir(), URI.filename())
try:
fetch_url(URI, config.archives_dir()) fetch_url(URI, config.archives_dir())
except pisi.fetcher.FetchError, e:
print e
pass
else: else:
print URI, "already downloaded..." print URI, "already downloaded..."