Commit 03295e11 authored by D1plo1d's avatar D1plo1d

Adding exceptions to prontserve

parent 96554b73
...@@ -285,7 +285,7 @@ class Prontserve(pronsole.pronsole, EventEmitter): ...@@ -285,7 +285,7 @@ class Prontserve(pronsole.pronsole, EventEmitter):
sdRef.close() sdRef.close()
def do_print(self): def do_print(self):
if not self.p.online: raise "not online" if not self.p.online: raise Exception("not online")
self.printing_jobs = True self.printing_jobs = True
def do_home(self, *args, **kwargs): def do_home(self, *args, **kwargs):
...@@ -316,7 +316,7 @@ class Prontserve(pronsole.pronsole, EventEmitter): ...@@ -316,7 +316,7 @@ class Prontserve(pronsole.pronsole, EventEmitter):
pronsole.pronsole.do_move(self, cmd ) pronsole.pronsole.do_move(self, cmd )
def do_stop_move(self): def do_stop_move(self):
raise "Continuous movement not supported" raise Exception("Continuous movement not supported")
def do_estop(self): def do_estop(self):
pronsole.pronsole.do_pause(self, "") pronsole.pronsole.do_pause(self, "")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment