Skip to content

Commit

Permalink
Check if time_ref is NoneType
Browse files Browse the repository at this point in the history
  • Loading branch information
oharan2 committed Jun 11, 2024
1 parent fd2f712 commit f4693f9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cloudwash/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@ def filter_resources_by_time_modified(
Use the time_ref "1h" to collect resources that exist for more than an hour
"""
filtered_resources = []
if time_ref is None:
time_ref = ""

if time_ref.isnumeric():
# Use default time value as Minutes
Expand Down

0 comments on commit f4693f9

Please sign in to comment.