Skip to content

Commit 749b8fe

Browse files
committed
Raise a better exception if there's no PureData.
1 parent 7b388d5 commit 749b8fe

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

nodebox/sound/process.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,8 @@ def start(self):
228228
if self.patch is None \
229229
or not os.path.exists(self.patch):
230230
raise PDError, "no PD patch file at '%s'" % self.patch
231+
if not self._path:
232+
raise PDError, "no PD application found"
231233
if not os.path.exists(self._path):
232234
raise PDError, "no PD application at '%s'" % self._path
233235
if not self._process:
@@ -286,4 +288,4 @@ def data(self):
286288
def stop(self):
287289
self._socket.connections -= 1
288290
self._socket.close()
289-
self._socket = None
291+
self._socket = None

0 commit comments

Comments
 (0)