Skip to content

Conversation

@erikkai
Copy link
Contributor

@erikkai erikkai commented May 25, 2022

Description

In Flask 2.1 onwards the method used to set up the config file is no longer available. So it will break. I replaced it with the config option where you load from a file. Then I set up config.json to be config.py so that it will work.

License

I confirm that this contribution is made under the terms of the MIT license and that I have the authority necessary to make this contribution on behalf of its copyright owner.

erikkai added 2 commits May 25, 2022 12:31
The app.config line that was here doesn't work anymore in Flask 2.1. References: 
pallets/flask#4078
https://flask.palletsprojects.com/en/2.1.x/changes/ 

This change must be added with the config file I'm adding next.
Changing file to match with the change in the server.py code
@mrashed-dev mrashed-dev self-requested a review May 31, 2022 21:20
@erikkai erikkai changed the title Patch 1 Change config file to match new Flask rules May 31, 2022
Copy link
Contributor

@mrashed-dev mrashed-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me @erikkai! Just need to fix the formatting and it will be good to go 👍

@mrashed-dev mrashed-dev merged commit ea8645e into nylas:main Jun 6, 2022
@mrashed-dev mrashed-dev mentioned this pull request Jun 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants