Changeset - cc1b5e0e01e8
[Not reviewed]
default
0 1 0
Mads Kiilerich - 9 years ago 2017-05-08 05:25:41
mads@kiilerich.com
celerylib: fix error in error logging format string
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
kallithea/lib/celerylib/__init__.py
Show inline comments
 
@@ -81,13 +81,13 @@ def task(f_org):
 
    else:
 
        def f_wrapped(*args, **kwargs):
 
            log.info('executing task %s in sync', f_org.__name__)
 
            try:
 
                result = f_org(*args, **kwargs)
 
            except Exception as e:
 
                log.error('exception executing sync task %s in sync', f_org.__name__, e)
 
                log.error('exception executing sync task %s in sync: %r', f_org.__name__, e)
 
                raise # TODO: return this in FakeTask as with async tasks?
 
            return FakeTask(result)
 

	
 
    return f_wrapped
 

	
 

	
0 comments (0 inline, 0 general)