[web2py] Passing file through pvars on scheduler.queue_task() function

2016-02-19 Thread Edward Suárez
file = request.post_vars["myfile"] task = scheduler.queue_task( "task", task_name = "task_x", pvars={ 'file': file , }, start_time = request.now + datetime.timedelta(seconds=50), #da

[web2py] Catching module exception

2015-11-21 Thread Edward Suárez
Hi, I have a problem trying to catch an exception of this module Grokzen/redis-py-cluster this is the code: from rediscluster.exceptions import RedisClusterException def getToken(key): try: token = redis.get(key) if token != None: