Skip to content

Commit 46d6101

Browse files
committed
fixed typo
1 parent c6ff929 commit 46d6101

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

tgtg_scanner/models/config.py

+11-11
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
2727
"""
2828

29-
DEPRECIATION_WARNING = "{} is deprecated and will be removed in a future release. Please use {} instead."
29+
DEPRECATION_NOTICE = "{} is deprecated and will be removed in a future release. Please use {} instead."
3030

3131

3232
@dataclass
@@ -176,7 +176,7 @@ def _read_ini(self, parser: configparser.ConfigParser):
176176
self._ini_get_cron(parser, "TELEGRAM", "Cron", "cron")
177177
self._ini_get(parser, "TELEGRAM", "Token", "token")
178178
if parser.has_option("TELEGRAM", "chat_ids"):
179-
log.warning(DEPRECIATION_WARNING.format("[TELEGRAM] chat_ids", "ChatIDs"))
179+
log.warning(DEPRECATION_NOTICE.format("[TELEGRAM] chat_ids", "ChatIDs"))
180180
self._ini_get_list(parser, "TELEGRAM", "chat_ids", "chat_ids") # legacy support
181181
self._ini_get_list(parser, "TELEGRAM", "ChatIDs", "chat_ids")
182182
self._ini_get_boolean(parser, "TELEGRAM", "DisableCommands", "disable_commands")
@@ -210,19 +210,19 @@ def _read_ini(self, parser: configparser.ConfigParser):
210210

211211
def _read_env(self):
212212
if environ.get("PUSH_SAFER", None):
213-
log.warning(DEPRECIATION_WARNING.format("PUSH_SAFER", "PUSHSAFER"))
213+
log.warning(DEPRECATION_NOTICE.format("PUSH_SAFER", "PUSHSAFER"))
214214
self._env_get_boolean("PUSH_SAFER", "enabled")
215215
self._env_get_boolean("PUSHSAFER", "enabled")
216216
if environ.get("PUSH_SAFER_CRON", None):
217-
log.warning(DEPRECIATION_WARNING.format("PUSH_SAFER_CRON", "PUSHSAFER_CRON"))
217+
log.warning(DEPRECATION_NOTICE.format("PUSH_SAFER_CRON", "PUSHSAFER_CRON"))
218218
self._env_get_cron("PUSH_SAFER_CRON", "cron")
219219
self._env_get_cron("PUSHSAFER_CRON", "cron")
220220
if environ.get("PUSH_SAFER_KEY", None):
221-
log.warning(DEPRECIATION_WARNING.format("PUSH_SAFER_KEY", "PUSHSAFER_KEY"))
221+
log.warning(DEPRECATION_NOTICE.format("PUSH_SAFER_KEY", "PUSHSAFER_KEY"))
222222
self._env_get("PUSH_SAFER_KEY", "key")
223223
self._env_get("PUSHSAFER_KEY", "key")
224224
if environ.get("PUSH_SAFER_DEVICE_ID", None):
225-
log.warning(DEPRECIATION_WARNING.format("PUSH_SAFER_DEVICE_ID", "PUSHSAFER_DEVICE_ID"))
225+
log.warning(DEPRECATION_NOTICE.format("PUSH_SAFER_DEVICE_ID", "PUSHSAFER_DEVICE_ID"))
226226
self._env_get("PUSH_SAFER_DEVICE_ID", "device_id")
227227
self._env_get("PUSHSAFER_DEVICE_ID", "device_id")
228228

@@ -271,7 +271,7 @@ def _read_ini(self, parser: configparser.ConfigParser):
271271
self._ini_get_boolean(parser, "SMTP", "SSL", "use_ssl")
272272
self._ini_get(parser, "SMTP", "Sender", "sender")
273273
if parser.has_option("SMTP", "Recipient"):
274-
log.warning(DEPRECIATION_WARNING.format("[SMTP] Recipient", "Recipients"))
274+
log.warning(DEPRECATION_NOTICE.format("[SMTP] Recipient", "Recipients"))
275275
self._ini_get_list(parser, "SMTP", "Recipient", "recipients") # legacy support
276276
self._ini_get_list(parser, "SMTP", "Recipients", "recipients")
277277
self._ini_get(parser, "SMTP", "RecipientsPerItem", "recipients_per_item")
@@ -289,7 +289,7 @@ def _read_env(self):
289289
self._env_get_boolean("SMTP_SSL", "use_ssl")
290290
self._env_get("SMTP_SENDER", "sender")
291291
if environ.get("SMTP_RECIPIENT", None):
292-
log.warning(DEPRECIATION_WARNING.format("SMTP_RECIPIENT", "SMTP_RECIPIENTS"))
292+
log.warning(DEPRECATION_NOTICE.format("SMTP_RECIPIENT", "SMTP_RECIPIENTS"))
293293
self._env_get_list("SMTP_RECIPIENT", "recipients") # legacy support
294294
self._env_get_list("SMTP_RECIPIENTS", "recipients")
295295
self._env_get("SMTP_RECIPIENTS_PER_ITEM", "recipients_per_item")
@@ -477,19 +477,19 @@ class LocationConfig(BaseConfig):
477477
def _read_ini(self, parser: configparser.ConfigParser):
478478
self._ini_get_boolean(parser, "LOCATION", "Enabled", "enabled")
479479
if parser.has_option("LOCATION", "Google_Maps_API_Key"):
480-
log.warning(DEPRECIATION_WARNING.format("[LOCATION] Google_Maps_API_Key", "GoogleMapsAPIKey"))
480+
log.warning(DEPRECATION_NOTICE.format("[LOCATION] Google_Maps_API_Key", "GoogleMapsAPIKey"))
481481
self._ini_get(parser, "LOCATION", "Google_Maps_API_Key", "google_maps_api_key") # legacy support
482482
self._ini_get(parser, "LOCATION", "GoogleMapsAPIKey", "google_maps_api_key")
483483
if parser.has_option("LOCATION", "Address"):
484-
log.warning(DEPRECIATION_WARNING.format("[LOCATION] Address", "OriginAddress"))
484+
log.warning(DEPRECATION_NOTICE.format("[LOCATION] Address", "OriginAddress"))
485485
self._ini_get(parser, "LOCATION", "Address", "origin_address") # legacy support
486486
self._ini_get(parser, "LOCATION", "OriginAddress", "origin_address")
487487

488488
def _read_env(self):
489489
self._env_get_boolean("LOCATION", "enabled")
490490
self._env_get("LOCATION_GOOGLE_MAPS_API_KEY", "google_maps_api_key")
491491
if environ.get("LOCATION_ADDRESS", None):
492-
log.warning(DEPRECIATION_WARNING.format("LOCATION_ADDRESS", "LOCATION_ORIGIN_ADDRESS"))
492+
log.warning(DEPRECATION_NOTICE.format("LOCATION_ADDRESS", "LOCATION_ORIGIN_ADDRESS"))
493493
self._env_get("LOCATION_ADDRESS", "origin_address") # legacy support
494494
self._env_get("LOCATION_ORIGIN_ADDRESS", "origin_address")
495495

0 commit comments

Comments
 (0)