manjaro / mdd

Manjaro Data Donor - WIP
MIT License
12 stars 3 forks source link

get_audio_info | TypeError: argument of type 'NoneType' is not iterable #11

Closed philmmanjaro closed 3 weeks ago

philmmanjaro commented 3 weeks ago

A user posted the following error:

Welcome to MDD - The Manjaro Data Donor
Preparing data submission...
Error: "failed to connect: Host is down"
Traceback (most recent call last):
  File "/usr/bin/mdd", line 843, in <module>
    main()
  File "/usr/bin/mdd", line 808, in main
    data = get_device_data(args.telemetry)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/mdd", line 753, in get_device_data
    "audio": get_audio_info(),
             ^^^^^^^^^^^^^^^^
  File "/usr/bin/mdd", line 530, in get_audio_info
    "active": 'core.daemon = "true"' in pipew_out and not pulseaudio_active,
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: argument of type 'NoneType' is not iterable

We might need a check for that case too.