Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jarosenb committed Jun 24, 2024
1 parent 0ba22e1 commit 96db3b5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions server/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def check_system_access(system: str, paths: List[str], token: str) -> None:
resp.raise_for_status()
except HTTPError:
raise HTTPException(status_code=resp.status_code, detail=resp.reason)


def check_system_access_v3(system: str, paths: List[str], token: str) -> None:
"""
Expand All @@ -132,9 +132,7 @@ def check_system_access_v3(system: str, paths: List[str], token: str) -> None:
detail="Detected a possible attempt to access multiple home directories.",
)
listing_url = (
f"{TAPIS_V3_BASE_URL}"
"/v3/files/ops/"
f"{system}/{common_path}/?limit=1"
f"{TAPIS_V3_BASE_URL}" "/v3/files/ops/" f"{system}/{common_path}/?limit=1"
)
try:
resp = requests.get(listing_url, headers={"x-tapis-token": token})
Expand Down

0 comments on commit 96db3b5

Please sign in to comment.