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
Raw Normal View History

2022-12-28 19:56:13 +02:00
class PlaceNotFoundError(Exception):
2023-03-09 17:25:06 +02:00
"""Query provided did not lead to any city or populated area"""
2022-12-28 19:56:13 +02:00
def __init__(self, query):
self.query = query
2023-03-09 17:25:06 +02:00
super().__init__(
f"Could not find any place on geonames.org of feature classes A and P by query '{self.query}'"
)