Skip to content

Commit

Permalink
check that shorten_ingested_interval is configured at all
Browse files Browse the repository at this point in the history
  • Loading branch information
Schpidi committed Sep 9, 2020
1 parent 658da9c commit f279052
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ngeo_browse_server/control/ingest/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ def ingest_browse(parsed_browse, browse_report, browse_layer, preprocessor, crs,

# shorten browse time by percentage of interval if configured
shorten_ingested_interval_percent = browse_layer.shorten_ingested_interval
if shorten_ingested_interval_percent != 0.0:
if shorten_ingested_interval_percent is not None and shorten_ingested_interval_percent != 0.0:
delta = parsed_browse.end_time - parsed_browse.start_time

# because python 2.6 does not have timedelta.total_seconds()
Expand Down

0 comments on commit f279052

Please sign in to comment.