mirror of
https://github.com/NohamR/prometheus-qbittorrent-exporter.git
synced 2025-05-24 00:59:28 +00:00
Add type hints to get_config_value
This commit is contained in:
parent
daed737f73
commit
330d8ec86a
@ -234,7 +234,7 @@ class ShutdownSignalHandler:
|
|||||||
self.shutdown_count += 1
|
self.shutdown_count += 1
|
||||||
|
|
||||||
|
|
||||||
def _get_config_value(key, default=""):
|
def _get_config_value(key: str, default: str = "") -> str:
|
||||||
input_path = os.environ.get("FILE__" + key, None)
|
input_path = os.environ.get("FILE__" + key, None)
|
||||||
if input_path is not None:
|
if input_path is not None:
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user