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

Can this be used without a config file? #12

Open
cericoda opened this issue Aug 9, 2018 · 0 comments
Open

Can this be used without a config file? #12

cericoda opened this issue Aug 9, 2018 · 0 comments

Comments

@cericoda
Copy link

cericoda commented Aug 9, 2018

Hello,

Nice package and thank you for it. I've used it on a cpanel account (where the server allows python through cloudlinux)

If this can't be used without a config file, it might be nice if it warns you that the config file can't be located. I had some issues because of a typo where I used ~.email2slack rather than ~/.email2slack for the config file.

Hey ho, not really a bug as such, just a suggestion for improvement. I could put together a pull request if you like.

the error I was getting was:-

Traceback (most recent call last):
File "/home/cericoda/virtualenv/email2slack/3.5/bin/email2slack", line 11, in
load_entry_point('email2slack==1.0.0a5', 'console_scripts', 'email2slack')()
File "/home/cericoda/virtualenv/email2slack/3.5/lib/python3.5/site-packages/email2slack/init.py", line 41, in main
Slack(args).notify(mail)
File "/home/cericoda/virtualenv/email2slack/3.5/lib/python3.5/site-packages/email2slack/slack.py", line 160, in notify
self.__post(url[0], self.__payload(
IndexError: list index out of range

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

1 participant