skinnywms
skinnywms copied to clipboard
Legend is incorrectly handled when layer not found
See this code in WMSServer.getLegend():
try:
legend = self.availability.layer(layer, time)
except errors.LayerNotDefined:
legend = self.plotter.layer
The problem is that in the except branch plotter.layer is a function and should properly called with arguments.