Skip to content

Commit

Permalink
Remove info attrbute check
Browse files Browse the repository at this point in the history
  • Loading branch information
giswqs authored Oct 27, 2024
1 parent d40c757 commit 7ffc5ec
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") and hasattr(self.info, "minzoom"):
if hasattr(self.info, "minzoom"):
return self.info.minzoom
else:
return self.reader.minzoom

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

0 comments on commit 7ffc5ec

Please sign in to comment.