Skip to content

Commit

Permalink
fix: correctly return update status in KnownExploitedDataSource (#5441)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylong authored Feb 11, 2023
1 parent 182721d commit 6cb9f33
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,14 @@ public boolean update(Engine engine) throws UpdateException {
}
//all dates in the db are now stored in seconds as opposed to previously milliseconds.
dbProperties.save(DatabaseProperties.KEV_LAST_CHECKED, Long.toString(System.currentTimeMillis() / 1000));
return true;
}
} catch (TooManyRequestsException | ResourceNotFoundException | IOException
| CorruptedDatastreamException | DatabaseException | SQLException ex) {
throw new UpdateException(ex);
}
}
return true;
return false;
}

@Override
Expand Down

0 comments on commit 6cb9f33

Please sign in to comment.