Skip to content

Commit

Permalink
phone_info modification
Browse files Browse the repository at this point in the history
  • Loading branch information
paveldat committed Dec 18, 2022
1 parent 8780787 commit 2272198
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/phone_info/phone_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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')

0 comments on commit 2272198

Please sign in to comment.