From fca7686701adbe3ea9490452439a6e95d086800b Mon Sep 17 00:00:00 2001 From: palmtree5 <3577255+palmtree5@users.noreply.github.com> Date: Thu, 3 May 2018 20:18:44 -0800 Subject: [PATCH] [V3 Core] fix 3.5-specific issue with [p]backup (#1586) (#1588) --- redbot/core/core_commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redbot/core/core_commands.py b/redbot/core/core_commands.py index e421653c4..d1d335d10 100644 --- a/redbot/core/core_commands.py +++ b/redbot/core/core_commands.py @@ -878,7 +878,7 @@ class Core: if data_dir.exists(): home = data_dir.home() backup_file = home / backup_filename - os.chdir(data_dir.parent) + os.chdir(str(data_dir.parent)) with tarfile.open(str(backup_file), "w:gz") as tar: tar.add(data_dir.stem) await ctx.send(_("A backup has been made of this instance. It is at {}.").format(