We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If twitterbot2 gives you this error:
$> python3 twitterbot2.py -h Traceback (most recent call last): File "http://twitterbot2.py", line 668, in <module> main() File "http://twitterbot2.py", line 581, in main format=http://globals.bot_user + ": %(levelname)s:%(asctime)s | %(message)s", File "/Library/Frameworks/Python.framework/Versions/3.x/lib/python3.x/logging/__init__.py", line 1919, in basicConfig raise ValueError('Unrecognised argument(s): %s' % keys) ValueError: Unrecognised argument(s): encoding
The problem is at this line and you have two solutions:
root_logger= logging.getLogger(__name__) root_logger.setLevel(logging.INFO) handler = logging.FileHandler('twitterbot2.log', 'a', 'utf-8') handler.setFormatter(logging.Formatter(globals.bot_user + ": %(levelname)s:%(asctime)s | %(message)s")) root_logger.addHandler(handler)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
If twitterbot2 gives you this error:
The problem is at this line and you have two solutions:
The text was updated successfully, but these errors were encountered: