mirror of
https://github.com/goharbor/harbor.git
synced 2025-02-16 11:51:47 +01:00
Signed-off-by: chlins <chenyuzh@vmware.com>
This commit is contained in:
parent
0dc7a6806c
commit
7ecd4a3f29
@ -252,6 +252,6 @@ class Cache:
|
||||
if not self.enabled:
|
||||
return
|
||||
|
||||
if not self.expire_hours.isnumeric():
|
||||
raise Exception('cache expire hours should be number')
|
||||
if not self.expire_hours or self.expire_hours <= 0:
|
||||
raise Exception('cache expire hours should be positive number')
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user