Commit 5a4f6aa9 authored by Janez K's avatar Janez K
Browse files

bugfix

parent 54ac61ac
......@@ -425,10 +425,13 @@ class Widget(models.Model):
pass
def run(self,offline):
if self.abstract_widget.windows_queue:
t = runWidget.apply_async([self,offline],queue="windows")
t.wait()
else:
try:
if self.abstract_widget.windows_queue:
t = runWidget.apply_async([self,offline],queue="windows")
t.wait()
else:
self.proper_run(offline)
except AttributeError:
self.proper_run(offline)
def proper_run(self,offline):
......
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