chainlib

Generic blockchain access library and tooling
Log | Files | Refs | README | LICENSE

commit 6faa5d7491ae264720012fef7cc8c54f46c674d4
parent 72b52a35630e4f408ad49264aad63a303ca34961
Author: lash <dev@holbrook.no>
Date:   Sat, 18 Feb 2023 18:58:36 +0000

Exit error code when no modules found in chainlib-gen

Diffstat:
MCHANGELOG | 2++
Mchainlib/runnable/gen.py | 4+++-
Msetup.cfg | 2+-
3 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/CHANGELOG b/CHANGELOG @@ -1,3 +1,5 @@ +- 0.4.12 + * Exit 1 when no modules found for chainlib-gen - 0.4.11 * Fix unsigned address none overwrite when no sender arg is set - 0.4.10 diff --git a/chainlib/runnable/gen.py b/chainlib/runnable/gen.py @@ -118,7 +118,9 @@ def main(): raise ValueError('command required for key query') is_key_query = True - find_chainlib_modules(fltr=module, cmd=args.command, args=arg, handler=hndlr, is_key_query=is_key_query) + r = find_chainlib_modules(fltr=module, cmd=args.command, args=arg, handler=hndlr, is_key_query=is_key_query) + if len(r) == 0: + sys.exit(1) if __name__ == '__main__': diff --git a/setup.cfg b/setup.cfg @@ -3,7 +3,7 @@ name=chainlib license=AGPLv3+ author_email=dev@holbrook.no description=Generic blockchain access library and tooling -version=0.4.11 +version=0.4.12 url=https://git.defalsify.org/chainlib author=Louis Holbrook