Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
nivcertora committed Jan 9, 2025
1 parent 9ca87b9 commit f5d0f2c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@ jobs:
poetry run ruff format --check src
- name: Run unit tests
run: |
echo $ANTHROPIC_API_KEY
poetry run pytest src/quorum/tests --maxfail=1 --disable-warnings --tb=short
run: poetry run pytest src/quorum/tests --maxfail=1 --disable-warnings --tb=short

- name: Run Quorum setup
run: poetry run quorum setup --working-dir workdir
Expand Down
13 changes: 9 additions & 4 deletions src/quorum/entry_points/implementations/ipfs_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,15 @@ def run_ipfs_validator(args: argparse.Namespace):
# Initialize the IPFS Validation Chain
ipfs_validation_chain = IPFSValidationChain()

# Execute the Chain
answer = ipfs_validation_chain.execute(
prompt_templates=args.prompt_templates, ipfs=ipfs, payload=payload
)
try:
# Execute the Chain
answer = ipfs_validation_chain.execute(
prompt_templates=args.prompt_templates, ipfs=ipfs, payload=payload
)
except Exception as e:
pp.pprint(f"Got and error while running LLM: {e}", pp.Colors.FAILURE)
pp.pprint("Verify your API key and try again.", pp.Colors.FAILURE)
return

if answer.incompatibilities:
pp.pprint("Found incompatibilities:", pp.Colors.FAILURE)
Expand Down

0 comments on commit f5d0f2c

Please sign in to comment.