This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
Telegram/classes/errors/geo.py

9 lines
307 B
Python

class PlaceNotFoundError(Exception):
"""Query provided did not lead to any city or populated area"""
def __init__(self, query):
self.query = query
super().__init__(
f"Could not find any place on geonames.org of feature classes A and P by query '{self.query}'"
)