Skip to content
This repository was archived by the owner on Aug 19, 2018. It is now read-only.

Commit 594f8ac

Browse files
committed
a comma space check
1 parent a097cf3 commit 594f8ac

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

crasync/core.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@ class Client:
1818
def __init__(self, session=None):
1919
self.session = session or aiohttp.ClientSession()
2020

21-
2221
async def get_profile(self, *tags):
2322
'''Get a profile object using tag(s)'''
2423

24+
if ', ' in tags:
25+
raise SyntaxError("Read the docs please")
26+
2527
tags = ','.join(tags)
2628

2729
url = f'{self.BASE}/profile/{tags}'
@@ -43,6 +45,9 @@ async def get_profile(self, *tags):
4345
async def get_clan(self, *tags):
4446
'''Get a clan object using tag(s)'''
4547

48+
if ', ' in tags:
49+
raise SyntaxError("Read the docs please")
50+
4651
tags = ','.join(tags)
4752

4853
url = f'{self.BASE}/clan/{tags}'

0 commit comments

Comments
 (0)