From 0b13716a0cc88f7db07891ef556100ddf0e3a3ee Mon Sep 17 00:00:00 2001 From: Salvo 'LtWorf' Tomaselli Date: Sun, 11 Feb 2024 23:23:13 +0100 Subject: [PATCH 1/2] Fail if nothing is found --- lsi-getconf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lsi-getconf b/lsi-getconf index 2d21f84..b5d4e26 100755 --- a/lsi-getconf +++ b/lsi-getconf @@ -105,6 +105,9 @@ def main() -> None: # TODO chromium + if not cookies and not tokens: + sys.exit('Fail: Nothing was found') + print('# ==============') if tokens: print('# Tokens found:') From 2d373d3b33a34520b73c990515a24c5308f1603a Mon Sep 17 00:00:00 2001 From: Salvo 'LtWorf' Tomaselli Date: Sun, 11 Feb 2024 23:24:28 +0100 Subject: [PATCH 2/2] Mypy on getconf --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 45dd293..55d8fee 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ all: .PHONY: lint lint: - mypy --config-file mypy.conf *.py slackclient localslackirc + mypy --config-file mypy.conf *.py slackclient localslackirc lsi-getconf .PHONY: test test: lint