aboutsummaryrefslogtreecommitdiffstats
path: root/solo_tool_qt.py
diff options
context:
space:
mode:
Diffstat (limited to 'solo_tool_qt.py')
-rw-r--r--solo_tool_qt.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/solo_tool_qt.py b/solo_tool_qt.py
index 44f2ee4..2ae75a5 100644
--- a/solo_tool_qt.py
+++ b/solo_tool_qt.py
@@ -165,7 +165,11 @@ class MainWindow(QMainWindow, Ui_MainWindow):
self.bSlider.setValue(int(ab[1] * POSITION_FACTOR))
def initMidi(self):
- self.midiController.connect()
+ try:
+ self.midiController.connect()
+ except Exception as e:
+ print("Error: could not connect to MIDI controller")
+ print(e)
if __name__ == '__main__':
app = QApplication([])