From 22721983f8dda6de5cb552c5c04f96eb75abdfdb Mon Sep 17 00:00:00 2001 From: Pavel Dat Date: Mon, 19 Dec 2022 00:14:03 +0300 Subject: [PATCH] `phone_info` modification --- src/phone_info/phone_info.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/phone_info/phone_info.py b/src/phone_info/phone_info.py index 2489cb2..529c249 100644 --- a/src/phone_info/phone_info.py +++ b/src/phone_info/phone_info.py @@ -13,7 +13,7 @@ import opencage import phonenumbers from pathlib import Path -from phonenumbers import carrier, carrier +from phonenumbers import geocoder, carrier from opencage.geocoder import OpenCageGeocode sys.path.insert( @@ -113,7 +113,8 @@ def draw_map(self, self.__logger.info('Draw map') if path_to_save is None: myMap.save(f'{self.__number}.html') + self.__logger.debug(f'Map was saved to {self.__number}.html') else: Path(path_to_save).mkdir(exist_ok=True, parents=True) myMap.save(f'{path_to_save}/{self.__number}.html') - self.__logger.debug('Map was drawn') + self.__logger.debug(f'Map was saved to {path_to_save}/{self.__number}.html')