We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c308b5 commit 9e9dc67Copy full SHA for 9e9dc67
wikirate4py/api.py
@@ -1437,6 +1437,9 @@ def add_source(self, **kwargs):
1437
if k not in kwargs:
1438
raise WikiRate4PyException("""Invalid set of params! You need to define all the following params to import
1439
a new source in WikiRate platform: """ + required_params.__str__())
1440
+ if 'link' not in kwargs and 'file' not in kwargs:
1441
+ raise WikiRate4PyException("""Invalid set of params! You need to define either a link or give a file path to
1442
+ upload a file while creating a new source: """ + required_params.__str__())
1443
1444
params = {
1445
"card[type]": "Source",
0 commit comments