diff --git a/localtileserver/client.py b/localtileserver/client.py index 4a3bc66..14049e3 100644 --- a/localtileserver/client.py +++ b/localtileserver/client.py @@ -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