Skip to content

Commit 2785a32

Browse files
authored
bug fix, changed LOKOLE_STSTATE_DIRECTORY to OPWEN (#545)
1 parent 63444b4 commit 2785a32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

opwen_email_client/webapp/forms/register.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ def _setup_client(self, path):
3535
response = post(client_create_url,
3636
json={'domain': client_domain},
3737
headers={'Authorization': 'Bearer {}'.format(token)})
38-
if response.status != 200:
38+
if response.status_code != 200:
3939
raise ValidationError(i8n.FAILED_REGISTRATION)
4040
register.delay(name, token, path)
4141

4242
def _setup_path(self):
4343
home = Path.home()
4444
user = home.parts[-1]
45-
path = (Path(getenv('LOKOLE_STATE_DIRECTORY', 'lokole/state')) / 'settings.env').absolute()
45+
path = (Path(getenv('OPWEN_STATE_DIRECTORY', 'lokole/state')) / 'settings.env').absolute()
4646
parent = path.parent
4747
parent.mkdir(parents=True, exist_ok=True)
4848
is_in_home = parent.parts[:3] == home.parts

0 commit comments

Comments
 (0)