diff options
Diffstat (limited to 'cogs')
-rw-r--r-- | cogs/admin.py | 5 | ||||
-rwxr-xr-x[-rw-r--r--] | cogs/compiler.py | 0 | ||||
-rwxr-xr-x[-rw-r--r--] | cogs/general.py | 0 | ||||
-rwxr-xr-x[-rw-r--r--] | cogs/help.py | 0 | ||||
-rwxr-xr-x[-rw-r--r--] | cogs/logs.py | 0 | ||||
-rwxr-xr-x[-rw-r--r--] | cogs/player.py | 0 | ||||
-rwxr-xr-x[-rw-r--r--] | cogs/src.py | 0 | ||||
-rwxr-xr-x[-rw-r--r--] | cogs/trans.py | 0 | ||||
-rwxr-xr-x[-rw-r--r--] | cogs/utils.py | 0 |
9 files changed, 4 insertions, 1 deletions
diff --git a/cogs/admin.py b/cogs/admin.py index 67ffa4c..6c15e5e 100644 --- a/cogs/admin.py +++ b/cogs/admin.py @@ -32,7 +32,10 @@ class Admin(commands.Cog): @commands.check(is_mod) async def pull(self, ctx): g = git.cmd.Git(os.getcwd()) - await ctx.send(f"Probably pulled.\n```bash\n{g.pull()}```") + try: + await ctx.send(f"Probably pulled.\n```bash\n{g.pull()}```") + except git.exc.GitCommandError as e: + await ctx.send(f"An error has occured when pulling```bash\n{e}```") @commands.command(aliases=['addcommand', 'newcommand']) @commands.check(is_mod) diff --git a/cogs/compiler.py b/cogs/compiler.py index 3bc6bef..3bc6bef 100644..100755 --- a/cogs/compiler.py +++ b/cogs/compiler.py diff --git a/cogs/general.py b/cogs/general.py index 0847cd4..0847cd4 100644..100755 --- a/cogs/general.py +++ b/cogs/general.py diff --git a/cogs/help.py b/cogs/help.py index 91c9c45..91c9c45 100644..100755 --- a/cogs/help.py +++ b/cogs/help.py diff --git a/cogs/logs.py b/cogs/logs.py index c1b3a49..c1b3a49 100644..100755 --- a/cogs/logs.py +++ b/cogs/logs.py diff --git a/cogs/player.py b/cogs/player.py index 5c046a7..5c046a7 100644..100755 --- a/cogs/player.py +++ b/cogs/player.py diff --git a/cogs/src.py b/cogs/src.py index ff31cfb..ff31cfb 100644..100755 --- a/cogs/src.py +++ b/cogs/src.py diff --git a/cogs/trans.py b/cogs/trans.py index 9c5d307..9c5d307 100644..100755 --- a/cogs/trans.py +++ b/cogs/trans.py diff --git a/cogs/utils.py b/cogs/utils.py index 68567f0..68567f0 100644..100755 --- a/cogs/utils.py +++ b/cogs/utils.py |