Skip to content
This repository was archived by the owner on Oct 15, 2025. It is now read-only.
This repository was archived by the owner on Oct 15, 2025. It is now read-only.

auto_save is not a parameter of an Enforcer #145

@SuitablyMysterious

Description

@SuitablyMysterious

A TypeError is thrown:

@SuitablyMysterious ➜ /workspaces/Library-System (testing-patch) $ docker logs backend --tail 100
Initiating policySetup.py
Traceback (most recent call last):
  File "/src/auth/policySetup.py", line 41, in <module>
    enforcer = Enforcer(str(MODEL_PATH), adapter, auto_save=False)
TypeError: CoreEnforcer.__init__() got an unexpected keyword argument 'auto_save'
Initiating policySetup.py
Traceback (most recent call last):
  File "/src/auth/policySetup.py", line 41, in <module>
    enforcer = Enforcer(str(MODEL_PATH), adapter, auto_save=False)
TypeError: CoreEnforcer.__init__() got an unexpected keyword argument 'auto_save'
Initiating policySetup.py
Traceback (most recent call last):
  File "/src/auth/policySetup.py", line 41, in <module>
    enforcer = Enforcer(str(MODEL_PATH), adapter, auto_save=False)
TypeError: CoreEnforcer.__init__() got an unexpected keyword argument 'auto_save'
Initiating policySetup.py
Traceback (most recent call last):
  File "/src/auth/policySetup.py", line 41, in <module>
    enforcer = Enforcer(str(MODEL_PATH), adapter, auto_save=False)
TypeError: CoreEnforcer.__init__() got an unexpected keyword argument 'auto_save'

Metadata

Metadata

Labels

C - BackendAffects the backend containerF - TestingThis issue was found in testingL - PythonAffects code written in Python

Type

Projects

Status

Waiting for Merge

Relationships

None yet

Development

No branches or pull requests

Issue actions