Skip to content

Commit

Permalink
handle the case of ignoring futher up the call stack
Browse files Browse the repository at this point in the history
  • Loading branch information
Al Niessner authored and Al Niessner committed Nov 15, 2024
1 parent e259823 commit 859c01e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,9 @@ private void updateLdd(String uri, String prefix) throws Exception

try
{
fileDownloader.download(jsonUrl, lddFile);
lddLoader.load(lddFile, schemaFileName, prefix);
if (fileDownloader.download(jsonUrl, lddFile)) {
lddLoader.load(lddFile, schemaFileName, prefix);
}
}
catch(Exception ex)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public FileDownloader(boolean sslTrustAll) throws Exception
* @param toFile Save to this file
* @throws Exception an exception
*/
public void download(String fromUrl, File toFile) throws Exception
public boolean download(String fromUrl, File toFile) throws Exception
{
int count = 0;

Expand All @@ -73,7 +73,6 @@ public void download(String fromUrl, File toFile) throws Exception
{
count++;
downloadOnce(fromUrl, toFile);
return;
}
catch(Exception ex)
{
Expand All @@ -90,6 +89,7 @@ public void download(String fromUrl, File toFile) throws Exception
}
}
}
return ignore.contains(fromUrl);
}


Expand Down

0 comments on commit 859c01e

Please sign in to comment.