rename euler_filter.py -> fcurve_euler_filter.py
authorCampbell Barton <ideasman42@gmail.com>
Mon, 15 Feb 2010 08:17:57 +0000 (08:17 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 15 Feb 2010 08:17:57 +0000 (08:17 +0000)
check if the .Blog file exists rather then using an exception.

release/scripts/op/fcurve_euler_filter.py [moved from release/scripts/op/euler_filter.py with 100% similarity]
release/scripts/ui/space_info.py

index f1f3201770c8ee38e31cc7d67d60dc84a51e5900..740cb23370af45fc688f24aadc131113eda8764b 100644 (file)
@@ -123,13 +123,16 @@ class INFO_MT_file_open_recent(bpy.types.Menu):
         import os
         layout = self.layout
         layout.operator_context = 'EXEC_AREA'
-        try:
-            file = open(os.path.join(bpy.app.home, ".Blog"), "rU")
+
+        path = os.path.join(bpy.app.home, ".Blog")
+
+        if os.path.isfile(path):
+            file = open(path, "rU")
             for line in file:
                 line = line.rstrip()
                 layout.operator("wm.open_mainfile", text=line, icon='FILE_BLEND').path = line
             file.close()
-        except:
+        else:
             layout.label(text='No recent files')