File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -294,6 +294,8 @@ def guild_id(self) -> typing.Optional[int]:
294
294
except ValueError :
295
295
self .config .remove ("guild_id" )
296
296
logger .critical ("Invalid GUILD_ID set." )
297
+ else :
298
+ logger .debug ("No GUILD_ID set." )
297
299
return None
298
300
299
301
@property
@@ -456,7 +458,7 @@ async def on_ready(self):
456
458
await self .wait_for_connected ()
457
459
458
460
if self .guild is None :
459
- logger .debug ("Logging out due to invalid GUILD_ID." )
461
+ logger .error ("Logging out due to invalid GUILD_ID." )
460
462
return await self .logout ()
461
463
462
464
logger .line ()
Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ def populate_cache(self) -> dict:
139
139
)
140
140
if os .path .exists (config_json ):
141
141
logger .debug ("Loading envs from config.json." )
142
- with open (config_json , "r" ) as f :
142
+ with open (config_json , "r" , encoding = "utf-8" ) as f :
143
143
# Config json should override env vars
144
144
try :
145
145
data .update (
You can’t perform that action at this time.
0 commit comments