Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] IRIS_SESSION_TIMEOUT is being interpreted as a string #665

Open
FideliusFalcon opened this issue Dec 12, 2024 · 0 comments
Open

[BUG] IRIS_SESSION_TIMEOUT is being interpreted as a string #665

FideliusFalcon opened this issue Dec 12, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@FideliusFalcon
Copy link

Describe the bug
When setting IRIS_SESSION_TIMEOUT= in the .env the value will be interpreted as a string, which throws an exception.
The issue orriginates from the following line in configuration.py

PERMANENT_SESSION_LIFETIME = timedelta(minutes=config.load('IRIS', 'SESSION_TIMEOUT', fallback=1440))

It can be fixed by forcing it as an integer:

PERMANENT_SESSION_LIFETIME = timedelta(minutes=int(config.load('IRIS', 'SESSION_TIMEOUT', fallback=1440)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant