[Yt-svn] yt-commit r993 - trunk/yt

mturk at wrangler.dreamhost.com mturk at wrangler.dreamhost.com
Tue Dec 9 14:37:15 PST 2008


Author: mturk
Date: Tue Dec  9 14:37:15 2008
New Revision: 993
URL: http://yt.spacepope.org/changeset/993

Log:
Quickie to make printing a traceback better and more seamless



Modified:
   trunk/yt/funcs.py

Modified: trunk/yt/funcs.py
==============================================================================
--- trunk/yt/funcs.py	(original)
+++ trunk/yt/funcs.py	Tue Dec  9 14:37:15 2008
@@ -145,9 +145,10 @@
 
 import traceback
 def print_tb(func):
+    @wraps(func)
     def run_func(*args, **kwargs):
         traceback.print_stack()
-        func(*args, **kwargs)
+        return func(*args, **kwargs)
     return run_func
 
 try:



More information about the yt-svn mailing list