fix for crash with GLSL material when image couldn't be loaded.

also quiet pep8 warnings.
This commit is contained in:
Campbell Barton
2011-02-10 14:59:17 +00:00
parent 1817a045b4
commit d240206c88
8 changed files with 12 additions and 13 deletions

View File

@@ -1169,7 +1169,6 @@ class WM_OT_addon_install(bpy.types.Operator):
else:
os.remove(f_full)
def execute(self, context):
import traceback
import zipfile
@@ -1216,7 +1215,6 @@ class WM_OT_addon_install(bpy.types.Operator):
elif os.path.exists(path_dest):
self.report({'WARNING'}, "File already installed to %r\n" % path_dest)
return {'CANCELLED'}
#if not compressed file just copy into the addon path
try: