Skip to content
Open
Changes from all 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
7 changes: 6 additions & 1 deletion python/tk_framework_desktopserver/shotgun/api_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,12 @@ def open(self, data):
self.host.reply(reply)
except Exception as e:
logger.exception(e)
self.host.report_error(e.message)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I believe the exception object should have the __str__ method defined so probably it's enough with this?

self.host.report_error(str(e))

if hasattr(e, "message"):
self.host.report_error(e.message)
elif e.args:
self.host.report_error(str(e.args[0]))
else:
self.host.report_error("unknown error")
Comment thread
julien-lang marked this conversation as resolved.

def pick_file_or_directory(self, data):
"""
Expand Down
Loading