Skip to content
Browse files

Minor error handling fix in infohierarchy example

  • Loading branch information...
1 parent 82dc267 commit 43c6ee0275687ee61a432735ad2ec6836bfd83ab @keesbos keesbos committed
Showing with 5 additions and 1 deletion.
  1. +5 −1 examples/infohierarchy/Trees.py
View
6 examples/infohierarchy/Trees.py
@@ -48,7 +48,11 @@ def onRemoteResponse(self, response, request_info):
self.create_tree(response)
def onRemoteError(self, code, message, request_info):
- RootPanel().add(HTML("Server Error or Invalid Response: ERROR " + code + " - " + message))
+ RootPanel().add(HTML(
+ "Server Error or Invalid Response: ERROR %s - %s" % (
+ code, message,
+ ),
+ ))
def onTreeItemSelected(self, item):
pass

0 comments on commit 43c6ee0

Please sign in to comment.
Something went wrong with that request. Please try again.