Skip to content

Commit

Permalink
Improve it
Browse files Browse the repository at this point in the history
  • Loading branch information
giswqs committed Oct 24, 2024
1 parent f29f66b commit d40c757
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions localtileserver/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,14 @@ def band_names(self):

@property
def min_zoom(self):
if hasattr(self, "info"):
if hasattr(self, "info") and hasattr(self.info, "minzoom"):
return self.info.minzoom
else:
return self.reader.minzoom

@property
def max_zoom(self):
if hasattr(self, "info"):
if hasattr(self, "info") and hasattr(self.info, "maxzoom"):
return self.info.maxzoom
else:
return self.reader.maxzoom
Expand Down

0 comments on commit d40c757

Please sign in to comment.