matomo-org / matomo-log-analytics

Import any kind of server logs in Matomo for powerful log analytics. Universal log file parsing and reporting.
https://matomo.org/log-analytics/
GNU General Public License v3.0
227 stars 119 forks source link

caddy_json: fix user_agent NoneType #374

Open simon04 opened 5 months ago

simon04 commented 5 months ago
Traceback (most recent call last):
  File "/var/www/analytics/misc/log-analytics/import_logs.py", line 2825, in <module>
    main()
  File "/var/www/analytics/misc/log-analytics/import_logs.py", line 2791, in main
    parser.parse(filename)
  File "/var/www/analytics/misc/log-analytics/import_logs.py", line 2636, in parse
    if hit.user_agent.startswith('"'):
AttributeError: 'NoneType' object has no attribute 'startswith'