Skip to content

Commit

Permalink
Fixed a bug that caused certain modules to crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Axyss committed Apr 15, 2021
1 parent e6aac28 commit 5978979
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion AutomatiK files/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def reload_modules():

class Client(commands.Bot, LangManager, ConfigManager):

VERSION = "v1.3.1"
VERSION = "v1.3.2"

def __init__(self, command_prefix, self_bot, intents):
commands.Bot.__init__(self, command_prefix=command_prefix, self_bot=self_bot, intents=intents)
Expand Down
2 changes: 1 addition & 1 deletion AutomatiK files/modules/epic.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def make_request(self):
raw_data = json.loads(raw_data.content) # Bytes to json object
raw_data = raw_data["data"]["Catalog"]["searchStore"]["elements"] # Cleans the data
return raw_data
except (HTTPError, Timeout, requests.exceptions.ConnectionError):
except (HTTPError, Timeout, requests.exceptions.ConnectionError, TypeError):
logger.error(f"Request to {self.SERVICE_NAME} by module \'{self.MODULE_ID}\' failed")
return False

Expand Down
2 changes: 1 addition & 1 deletion AutomatiK files/modules/humble.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def make_request(self):
raw_data = requests.get(self.ENDPOINT).json()
raw_data = raw_data["results"]
return raw_data
except (HTTPError, Timeout, requests.exceptions.ConnectionError):
except (HTTPError, Timeout, requests.exceptions.ConnectionError, TypeError):
logger.error(f"Request to {self.SERVICE_NAME} by module \'{self.MODULE_ID}\' failed")
return False

Expand Down

0 comments on commit 5978979

Please sign in to comment.