Skip to content

Commit

Permalink
Add log error on getting credentials request
Browse files Browse the repository at this point in the history
  • Loading branch information
LoanR committed May 28, 2024
1 parent 0bfe902 commit 1e97166
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion web/b3desk/models/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,14 @@ def make_nextcloud_credentials_request(url, payload, headers):
data["nclocator"] = urlunparse(parsed_url._replace(scheme="https"))
return data

except requests.exceptions.RequestException:
except requests.exceptions.RequestException as e:
current_app.logger.error(
"Unable to contact %s with payload %s and header %s, %s",
url,
payload,
headers,
e,
)
return None


Expand Down

0 comments on commit 1e97166

Please sign in to comment.