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

Error when adding an item to the db #51

Closed
faceslog opened this issue Dec 10, 2021 · 4 comments
Closed

Error when adding an item to the db #51

faceslog opened this issue Dec 10, 2021 · 4 comments
Assignees

Comments

@faceslog
Copy link

Hi I just tried to install properly the bot via docker / and in a local env but I'm getting the same error everytime I run the add cmd:

Ignoring exception in command add:
Traceback (most recent call last):
  File "/home/user/.local/lib/python3.7/site-packages/discord/ext/commands/core.py", line 85, in wrapped
    ret = await coro(*args, **kwargs)
  File "bot.py", line 36, in add
    if((doesItExist(url) == False) and (amIThere(url) == False)):
  File "/home/user/notion/Notion-DiscordBot/Bot/duplicateCheck.py", line 31, in amIThere
    with open("./Bot/dataUploaded.txt") as log:
FileNotFoundError: [Errno 2] No such file or directory: './Bot/dataUploaded.txt'

I decided to remove the "Bot/" in line 31 in Bot/duplicateCheck.py
I replaced with open("./Bot/dataUploaded.txt") as log: to with open("./dataUploaded.txt") as log: and now everything is working fine.

Regards

@raghavTinker
Copy link
Member

Were you running this in a container?

@faceslog
Copy link
Author

Yes and the error still occured without using docker

@raghavTinker
Copy link
Member

Yeah actually this was an issue
thanks for letting us know!
Will fix it!

raghavTinker added a commit that referenced this issue Dec 10, 2021
@raghavTinker
Copy link
Member

The issue has been fixed so will be closing the issue.
Thanks for letting us know!

@raghavTinker raghavTinker self-assigned this Dec 10, 2021
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

No branches or pull requests

2 participants