Skip to content

crash if no interfaces are available #19

@lorenzofattori

Description

@lorenzofattori

before there was a popup warning in case of no interfaces available, not it crashes

MidiInWinMM::initialize: no MIDI input devices currently available.

Traceback (most recent call last):
  File "c:/Users/Lorenzo/Desktop/M2Q Python/m2q_python/m2q.py", line 50, in <module>
    midiin = m2q_midi.midiSetup(settings, udpSocket, userInterface)
  File "c:\Users\Lorenzo\Desktop\M2Q Python\m2q_python\m2q_midi.py", line 221, in midiSetup
    UISetMidiPortsChoices(userInterface, ports)   
  File "c:\Users\Lorenzo\Desktop\M2Q Python\m2q_python\m2q_midi.py", line 193, in UISetMidiPortsChoices
    for port, name in enumerate(ports):
TypeError: 'NoneType' object is not iterable    

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions