0

changed bare exceptions to except Exception

This commit is contained in:
Andrew Brown
2011-10-26 22:36:23 -04:00
parent b31160e3ad
commit f5ae4b3451
4 changed files with 8 additions and 8 deletions

View File

@@ -2255,7 +2255,7 @@ def prepareBiomeData(worlddir):
try:
grasscolor = list(Image.open(os.path.join(biomeDir,"grasscolor.png")).getdata())
foliagecolor = list(Image.open(os.path.join(biomeDir,"foliagecolor.png")).getdata())
except:
except Exception:
# clear anything that managed to get set
grasscolor = None
foliagecolor = None
@@ -2316,7 +2316,7 @@ def loadLightColor():
lightcolor_checked = True
try:
lightcolor = list(_load_image("light_normal.png").getdata())
except:
except Exception:
logging.warning("Light color image could not be found.")
lightcolor = None
return lightcolor