mirror of
https://github.com/laurentS/slowapi.git
synced 2026-03-13 09:10:20 +08:00
@@ -157,7 +157,9 @@ class Limiter:
|
||||
|
||||
dotenv_file_exists = os.path.isfile(".env")
|
||||
self.app_config = Config(
|
||||
".env" if dotenv_file_exists and config_filename is None else config_filename
|
||||
".env"
|
||||
if dotenv_file_exists and config_filename is None
|
||||
else config_filename
|
||||
)
|
||||
|
||||
self.enabled = enabled
|
||||
|
||||
Reference in New Issue
Block a user