Skip to content

Commit

Permalink
fix: aippt default styles (#2779)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yeuoly authored Mar 11, 2024
1 parent 53cd125 commit 82d0732
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/core/tools/provider/builtin/aippt/tools/aippt.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ def get_styles(self, user_id: str) -> tuple[list[dict], list[dict]]:
:return: Tuple[list[dict[id, color]], list[dict[id, style]]
"""
if not self.runtime.credentials.get('aippt_access_key') or not self.runtime.credentials.get('aippt_secret_key'):
return [], []
raise Exception('Please provide aippt credentials')

return self._get_styles(credentials=self.runtime.credentials, user_id=user_id)

Expand Down

0 comments on commit 82d0732

Please sign in to comment.