mirror of
https://github.com/RafaelSolVargas/Vulkan.git
synced 2025-10-29 16:57:23 +00:00
Upgrading clean code
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import asyncio
|
||||
from Exceptions.Exceptions import DownloadingError, Error
|
||||
from Exceptions.Exceptions import DownloadingError, VulkanError
|
||||
from discord.ext.commands import Context
|
||||
from discord import Client
|
||||
from Controllers.AbstractController import AbstractController
|
||||
@@ -64,7 +64,7 @@ class PlayController(AbstractController):
|
||||
return response
|
||||
|
||||
except Exception as err:
|
||||
if isinstance(err, Error):
|
||||
if isinstance(err, VulkanError): # If error was already processed
|
||||
print(f'DEVELOPER NOTE -> PlayController Error: {err.message}')
|
||||
error = err
|
||||
embed = self.embeds.CUSTOM_ERROR(error)
|
||||
|
||||
Reference in New Issue
Block a user