summaryrefslogtreecommitdiff
path: root/tracing.py
diff options
context:
space:
mode:
Diffstat (limited to 'tracing.py')
-rw-r--r--tracing.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tracing.py b/tracing.py
index efef8e2..4c7eecb 100644
--- a/tracing.py
+++ b/tracing.py
@@ -74,5 +74,6 @@ def trace(msg, *args):
break
if log_it:
filename = os.path.basename(filename)
- msg = msg % args
+ if args:
+ msg = msg % args
logging.debug('%s:%s:%s: %s' % (filename, lineno, funcname, msg))