From e2450d36156e20e90ca8b3f8da49229c30e03830 Mon Sep 17 00:00:00 2001 From: bobloy Date: Fri, 26 Oct 2018 09:15:32 -0400 Subject: [PATCH] more fix --- recyclingplant/recyclingplant.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/recyclingplant/recyclingplant.py b/recyclingplant/recyclingplant.py index 7f8f326..dbb77da 100644 --- a/recyclingplant/recyclingplant.py +++ b/recyclingplant/recyclingplant.py @@ -14,13 +14,11 @@ class RecyclingPlant(Cog): def __init__(self, bot): self.bot = bot - - self.junk_path = bundled_data_path(self) / "junk.json" - self.junk = None def load_junk(self): - with self.junk_path.open() as json_data: + junk_path = bundled_data_path(self) / "junk.json" + with junk_path.open() as json_data: self.junk = json.load(json_data) @commands.command(aliases=["recycle"])