Skip to content

Commit

Permalink
Fix missed none check for external_account in owncloud
Browse files Browse the repository at this point in the history
  • Loading branch information
cslzchen committed Oct 29, 2023
1 parent 7faa995 commit 92e8952
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions addons/owncloud/serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ def serialized_folder(self, node_settings):
def credentials_are_valid(self, user_settings, client=None):
node = self.node_settings
external_account = node.external_account
if external_account is None:
return False
provider = self.node_settings.oauth_provider(external_account)

try:
Expand Down

0 comments on commit 92e8952

Please sign in to comment.