Consider the following script:
class LicenseError(Exception):
pass
import arcpy
from arcpy import env
try:
if arcpy.CheckExtension("3D") == "Available":
arcpy.CheckOutExtension("3D")
else:
raise LicenseError
env.workspace = "C:/raster"
arcpy.Slope_3d("elevation", "slope")
except LicenseError:
print "3D license is unavailable"
except:
print arcpy.GetMessages(2)
finally:
arcpy.CheckInExtension("3D")
What does the finally code block accomplish?
Select one of the following: