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

Added load_dontenv, changed mongo_uri load logic #59

Merged
merged 3 commits into from
Sep 23, 2022

Conversation

sebkuip
Copy link
Member

@sebkuip sebkuip commented Sep 3, 2022

sebkuip
sebkuip commented 18 minutes ago
Currently modmail uses load_dotenv to not rely on pipenv. Logviewer does not have this function. This update adds this load_dotenv along with changing logic in loading the mongo_uri to be more consistent. Including a clear exit message when no mongo_uri is found.

@@ -312,84 +320,6 @@
"markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'",
"version": "==1.16.0"
},
"ujson": {
Copy link
Contributor

@Taaku18 Taaku18 Sep 3, 2022

Choose a reason for hiding this comment

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

Looks like you may need to run pipenv lock again. ujson and uvloop are speedup dependencies for sanic—not sure why they are removed.

Update: I tried relocking your Pipfile locally, and these two packages indeed came back. I'll merge the PR once you relock the dependencies. 😃

Copy link
Member Author

Choose a reason for hiding this comment

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

I have finally managd to get these fixed with a relock. Not sure what went different this time but it magically worked. Can you review again?

Copy link
Contributor

@Taaku18 Taaku18 left a comment

Choose a reason for hiding this comment

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

All good thanks, will merge.

@Taaku18 Taaku18 merged commit d62b25d into modmail-dev:master Sep 23, 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