Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Legend is incorrectly handled when layer not found #54

Open
sandorkertesz opened this issue Feb 11, 2021 · 0 comments
Open

Legend is incorrectly handled when layer not found #54

sandorkertesz opened this issue Feb 11, 2021 · 0 comments

Comments

@sandorkertesz
Copy link
Contributor

sandorkertesz commented Feb 11, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant