Skip to content

Commit 32c4b5b

Browse files
committed
fix
1 parent c2062f8 commit 32c4b5b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bev/config/location.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,8 @@ def build(self) -> Optional[Location]:
239239
ttl = timeparse(self.ttl)
240240
if ttl is None:
241241
raise ValueError(f'The time format could not be parsed: {self.ttl}')
242+
else:
243+
ttl = self.ttl
242244
return RedisLocation(self.url, prefix=self.prefix, keep_labels=self.keep_labels,
243245
keep_usage=self.keep_usage, ttl=ttl)
244246

0 commit comments

Comments
 (0)