Skip to content

Commit 467bb96

Browse files
committed
[Community] fix non auth private data fetch error
1 parent cff8d00 commit 467bb96

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

octobot/community/authentication.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -594,6 +594,9 @@ async def fetch_bot_tentacles_data_based_config(
594594

595595
async def fetch_private_data(self, reset=False):
596596
try:
597+
if not self.is_logged_in():
598+
self.logger.info(f"Can't fetch private data: no authenticated user")
599+
return
597600
mqtt_uuid = None
598601
try:
599602
mqtt_uuid = self.get_saved_mqtt_device_uuid()

0 commit comments

Comments
 (0)