Skip to content

Commit

Permalink
fixing more pylint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
KeiOshima committed Nov 30, 2023
1 parent b274290 commit d82c8ef
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
1 change: 1 addition & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ setuptools = "*"
tomli = "*"
typing-extensions = "*"
dill = "*"
python-dotenv = "*"

[dev-packages]

Expand Down
11 changes: 10 additions & 1 deletion Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions database/database.py.py → database/database.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
"""
database file to connect ot database
"""
import os

from pymongo import MongoClient
from dotenv import load_dotenv

Expand All @@ -18,4 +20,4 @@
DB = client[os.getenv("MONGODB_DATABASE")]
print("Pinged your deployment. You successfully connected to MongoDB!")
except Exception as e: # pylint: disable=broad-except
print(e)
print(e)

0 comments on commit d82c8ef

Please sign in to comment.