Add default for SS_TYPE
This commit is contained in:
parent
fbe174e4fb
commit
e09347a03f
@ -44,7 +44,7 @@ class StateStorageConfig:
|
||||
|
||||
@classmethod
|
||||
def from_env(cls):
|
||||
return cls(os.getenv("SS_TYPE"),
|
||||
return cls(os.getenv("SS_TYPE", "memory"),
|
||||
os.getenv("SS_REDIS_HOST"),
|
||||
int(os.getenv("SS_REDIS_PORT", 6379)),
|
||||
int(os.getenv("SS_REDIS_DB", 0)),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user