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

mturk at wrangler.dreamhost.com mturk at wrangler.dreamhost.com
Wed Mar 25 09:57:01 PDT 2009


Author: mturk
Date: Wed Mar 25 09:57:00 2009
New Revision: 1235
URL: http://yt.spacepope.org/changeset/1235

Log:
Fixing undefined variable bug with the 'load' convenience function



Modified:
   trunk/yt/convenience.py

Modified: trunk/yt/convenience.py
==============================================================================
--- trunk/yt/convenience.py	(original)
+++ trunk/yt/convenience.py	Wed Mar 25 09:57:00 2009
@@ -57,9 +57,9 @@
     if len(candidates) == 1:
         return output_type_registry[candidates[0]](*args, **kwargs)
     if len(candidates) == 0:
-        mylog.error("Couldn't figure out output type for %s", fn)
+        mylog.error("Couldn't figure out output type for %s", args[0])
         return None
-    mylog.error("Multiple output type candidates for %s:", fn)
+    mylog.error("Multiple output type candidates for %s:", args[0])
     for c in candidates:
         mylog.error("    Possible: %s", c)
     return None



More information about the yt-svn mailing list