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

Fixing None return on #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jaesivsm
Copy link

While inquiring the error below, I though _generate_name behavior wasn't the one intended.

>>> apache.ApacheSource(['app.jarr.info:443 192.99.37.47 - - [24/Jan/2023:14:39:41 +0100] "GET / HTTP/2.0" 200 1245 "-" "updown.io daemon 2.9"'], '%v %p %h %l %u %t "%r" %>s %O "%{Referer}i" "%{User-Agent}i"')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/jaes/.cache/pypoetry/virtualenvs/papache-log-parser-hFQMj0L_-py3.10/lib/python3.10/site-packages/lars/apache.py", line 469, in __init__
    self._parse_log_format()
  File "/home/jaes/.cache/pypoetry/virtualenvs/papache-log-parser-hFQMj0L_-py3.10/lib/python3.10/site-packages/lars/apache.py", line 617, in _parse_log_format
    ','.join(tuple_fields))
TypeError: sequence item 1: expected str instance, NoneType found

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

Successfully merging this pull request may close these issues.

1 participant