Skip to content

Commit

Permalink
chore: move assignment out of try block
Browse files Browse the repository at this point in the history
Signed-off-by: behnazh-w <behnaz.hassanshahi@oracle.com>
  • Loading branch information
behnazh-w committed Nov 7, 2024
1 parent c9761dc commit 678abb1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -273,10 +273,10 @@ def check_publish_start_commit_timestamps(
True if the commit date is within the acceptable range from the publish start time,
False otherwise. Returns False in case of any errors during timestamp comparisons.
"""
# Make sure the source-code commit date is also within acceptable range.
acceptable_range = time_range / 2
try:
if started_at < publish_date_time:
# Make sure the source-code commit date is also within acceptable range.
acceptable_range = time_range / 2
if timedelta.total_seconds(abs(started_at - commit_date_time)) > acceptable_range:
logger.debug(
(
Expand Down

0 comments on commit 678abb1

Please sign in to comment.