From ad157ed7e1ac2c8c88179526a7f660a557e83803 Mon Sep 17 00:00:00 2001 From: sgoudham Date: Tue, 21 Jul 2020 00:34:20 +0100 Subject: [PATCH] Removing pasted code --- cogs/help/info.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cogs/help/info.py b/cogs/help/info.py index 52f4257b..f75ad71c 100644 --- a/cogs/help/info.py +++ b/cogs/help/info.py @@ -215,7 +215,8 @@ class Info(commands.Cog): with proc.oneshot(): uptime = datetime.timedelta(seconds=time() - proc.create_time()) cpu = proc.cpu_times() - cpu_time = datetime.timedelta(seconds=cpu.system + cpu.user) + if cpu: + cpu_time = datetime.timedelta(seconds=cpu.system + cpu.user) mem_total = virtual_memory().total / (1024 ** 2) mem_of_total = proc.memory_percent() mem_usage = mem_total * (mem_of_total / 100)