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

the split method cannot be used on all log calls... need a try: except #1

Closed
Ruckusist opened this issue Apr 12, 2017 · 0 comments
Closed

Comments

@Ruckusist
Copy link
Contributor

File "/usr/lib64/python3.6/site-packages/logging-0.1.0-py3.6.egg/ag/logging/init.py", line 119, in _log
lines = msg.split('\n')
AttributeError: 'generator' object has no attribute 'split'

fix:
try:
lines = msg.split("/n")
except:
try:
msg = "\n".join([this for this in msg])
lines = msg.split("/n")
except:
lines = msg
log.warn("failed to split lines")

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