diff --git a/scrython/cards/search.py b/scrython/cards/search.py index d50c823..94607c8 100644 --- a/scrython/cards/search.py +++ b/scrython/cards/search.py @@ -31,31 +31,31 @@ class Search(CardsObject): def object(self): if self.__checkForKey('object') is None: - raise KeyError('This card has no associated object key.') + raise KeyError('This object has no key \'object\'') return self.scryfallJson['object'] def total_cards(self): if self.__checkForKey('total_cards') is None: - raise KeyError('This card has no associated total cards key.') + raise KeyError('This object has no key \'total_cards\'') return self.scryfallJson['total_cards'] def data(self): if self.__checkForKey('data') is None: - raise KeyError('This card has no associated data key.') + raise KeyError('This object has no key \'data\'') return self.scryfallJson['data'] def next_page(self): if self.__checkForKey('next_page') is None: - raise KeyError('This card has no associated next page key.') + raise KeyError('This object has no key \'next_page\'') return self.scryfallJson['next_page'] def warnings(self): if self.__checkForKey('warnings') is None: - raise KeyError('This card has no associated warnings key.') + raise KeyError('This object has no key \'warnings\'') return self.scryfallJson['warnings'] diff --git a/scrython/rulings/rulings_object.py b/scrython/rulings/rulings_object.py index 2a29208..a478803 100644 --- a/scrython/rulings/rulings_object.py +++ b/scrython/rulings/rulings_object.py @@ -40,25 +40,25 @@ class RulingsObject(object): def object(self): if self.__checkForKey('object') is None: - return KeyError('This ruling object has no key \'object\'') + return KeyError('This object has no key \'object\'') return self.scryfallJson['object'] def has_more(self): if self.__checkForKey('has_more') is None: - return KeyError('This ruling object has no key \'has_more\'') + return KeyError('This object has no key \'has_more\'') return self.scryfallJson['has_more'] def data(self): if self.__checkForKey('data') is None: - return KeyError('This ruling object has no key \'data\'') + return KeyError('This object has no key \'data\'') return self.scryfallJson['data'] def data_length(self): if self.__checkForKey('data') is None: - return KeyError('This ruling object has no key \'data\'') + return KeyError('This object has no key \'data\'') return len(self.scryfallJson['data'])