Commit c35e14c4 authored by jbh's avatar jbh

avoid exceptions.AttributeError on percentdone for 'ProntRPC' when printing

parent ae055f40
...@@ -59,7 +59,7 @@ class ProntRPC(object): ...@@ -59,7 +59,7 @@ class ProntRPC(object):
if self.pronsole.p.printing: if self.pronsole.p.printing:
progress = 100 * float(self.pronsole.p.queueindex) / len(self.pronsole.p.mainqueue) progress = 100 * float(self.pronsole.p.queueindex) / len(self.pronsole.p.mainqueue)
elif self.pronsole.sdprinting: elif self.pronsole.sdprinting:
progress = self.percentdone progress = self.pronsole.percentdone
else: progress = None else: progress = None
if self.pronsole.p.printing or self.pronsole.sdprinting: if self.pronsole.p.printing or self.pronsole.sdprinting:
eta = self.pronsole.get_eta() eta = self.pronsole.get_eta()
......
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