Skip to content

Commit

Permalink
fixing pylint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
PhillipsOwen committed Sep 28, 2023
1 parent 6825b2c commit 93314ed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ disable=broad-except,broad-exception-raised
min-public-methods=0
fail-under=9.5
extension-pkg-allow-list=pydantic
max-locals=20
8 changes: 4 additions & 4 deletions src/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
import json
import os
import re
import requests

from pathlib import Path
import requests

from fastapi import FastAPI, Depends
from fastapi.middleware.cors import CORSMiddleware
Expand Down Expand Up @@ -89,11 +89,11 @@ async def get_all_sv_component_versions() -> json:
data = requests.get(f'{item[0]}/get_sv_component_versions', headers=item[1], timeout=10)

# was the call unsuccessful
if data.status_code != 200:
if data.status_code == 200:
results.append(json.loads(data.text))
else:
# raise the issue
raise Exception(f'Failure to get image version data from: {url}. HTTP Error: {data.status_code}')
else:
results.append(json.loads(data.text))

# now that we have all the data output something human-readable
# for each workflow type gather the steps. we use the first dataset as the reference
Expand Down

0 comments on commit 93314ed

Please sign in to comment.