diff --git a/cards/collector.py b/cards/collector.py index b51cef3..bbc8ad3 100644 --- a/cards/collector.py +++ b/cards/collector.py @@ -2,7 +2,7 @@ import asyncio, aiohttp import json class Collector(object): - """ cards/named + """ cards/:code/:collector_number Parameters: code: int The 3 or 4 letter set code. @@ -82,7 +82,7 @@ class Collector(object): 'version':self.version, 'pretty':self.pretty })) - + if self.scryfallJson['object'] == 'error': raise Exception(self.scryfallJson['details']) self.session.close() diff --git a/cards/id.py b/cards/id.py index 18b7b69..24d88fc 100644 --- a/cards/id.py +++ b/cards/id.py @@ -2,7 +2,7 @@ import asyncio, aiohttp import json class Id(object): - """ cards/named + """ cards/:id Parameters: id: str The Scryfall id of the card. diff --git a/cards/mtgo.py b/cards/mtgo.py index e41789f..5fc2207 100644 --- a/cards/mtgo.py +++ b/cards/mtgo.py @@ -2,10 +2,10 @@ import asyncio, aiohttp import json class Mtgo(object): - """ cards/named + """ cards/mtgo/:id Parameters: - id: int The multiverse id of the card. + id: int The mtgo id of the card. format: str The data format to return: json, text, or image. Defaults to json. face: str If using the image format and this parameter has the value back, the back face of the card will be returned. diff --git a/cards/randomcard.py b/cards/randomcard.py index 5ebc23e..1c79f09 100644 --- a/cards/randomcard.py +++ b/cards/randomcard.py @@ -2,7 +2,7 @@ import asyncio, aiohttp import json class RandomCard(object): - """ cards/named + """ cards/random Parameters: format: str The data format to return: json, text, or image. Defaults to json. @@ -78,7 +78,7 @@ class RandomCard(object): 'version':self.version, 'pretty':self.pretty })) - + if self.scryfallJson['object'] == 'error': raise Exception(self.scryfallJson['details']) self.session.close()