rabin %!s(int64=7) %!d(string=hai) anos
pai
achega
54e3a0c689
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      cron.py

+ 4 - 1
cron.py

@@ -27,7 +27,10 @@ def handle():
 				product.status(v['id'], 2)
 				site = product.getSite(v['site_id'])
 				task.append(gevent.spawn(run, site, [v]))
-			gevent.joinall(task)
+			try:
+				gevent.joinall(task)
+			except BaseException as e:
+				print e
 		gevent.sleep(timeSleep)