Skip to content

Commit 8a76c5f

Browse files
committed
fix linting
1 parent 46c69d8 commit 8a76c5f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

onepyece/common.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,11 @@ def check_params(endpoint, lang="en", search=None, resource=None):
5959
if lang not in AUTHORIZED_LANGS:
6060
raise ValueError(f"Unknown language '{lang}', authorized languages are {AUTHORIZED_LANGS}")
6161
if endpoint not in ENDPOINTS:
62-
raise ValueError(f"Unknown API endpoint '{endpoint}', authorized endpoints are {[key for key in ENDPOINTS]}")
62+
raise ValueError(f"Unknown API endpoint '{endpoint}', \
63+
authorized endpoints are {list(ENDPOINTS)}")
6364
if search is not None and search not in ENDPOINTS[endpoint]:
6465
raise ValueError(f"""Unknown search '{search}' for endpoint '{endpoint}',
65-
authorized searches are {[key for key in ENDPOINTS[endpoint]]}
66+
authorized searches are {list(ENDPOINTS[endpoint])}
6667
""")
6768
if search is not None and search not in NO_RESOURCE_SEARCHES and resource is None:
6869
raise ValueError("Resource is required for this search")

0 commit comments

Comments
 (0)