Skip to content

Commit

Permalink
removing default timerange metadata
Browse files Browse the repository at this point in the history
a RuntimeException will now be thrown instead if this metadata cannot be loaded
  • Loading branch information
FabiKo117 committed Feb 19, 2020
1 parent 452ea66 commit 266b88f
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,7 @@ public static void extractOSHDBMetadata() throws IOException {
ExtractMetadata.fromTstamp = timeranges[0];
ExtractMetadata.toTstamp = timeranges[1];
} else {
// the here defined hard-coded values are only temporary available
// in future an exception will be thrown, if these metadata infos are not retrieveable
ExtractMetadata.fromTstamp = "2008-01-01T00:00:00Z";
ExtractMetadata.toTstamp = "2018-01-01T00:00:00Z";
throw new RuntimeException("The timerange metadata could not be retrieved from the db.");
}
if (db.metadata("attribution.short") != null) {
ExtractMetadata.attributionShort = db.metadata("attribution.short");
Expand Down

0 comments on commit 266b88f

Please sign in to comment.