Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions rsconnect/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,8 +354,8 @@ def app_access(self, app_guid: str) -> None:
if self.is_app_failed_response(response):
raise RSConnectException(
"Could not access the deployed content. "
+ "The app might not have started successfully. "
+ "Visit it in Connect to view the logs."
+ "The app might not have started successfully."
+ f"\n\t For more information: {self.app_config(app_guid)['logs_url']}"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The paranoid programmer in me says to avoid the possible KeyError before the exception is raised.

Suggested change
+ f"\n\t For more information: {self.app_config(app_guid)['logs_url']}"
+ f"\n\tFor more information: {self.app_config(app_guid).get('logs_url')}"

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(1) yes, agreed about the key error (2) the there is (sadly) intentional to avoid needing to s/\t /\t/g elsewhere

)

def bundle_download(self, content_guid: str, bundle_id: str) -> HTTPResponse:
Expand Down
Loading