--- a/ProjectController.py Mon May 21 11:00:57 2012 +0200
+++ b/ProjectController.py Mon May 21 16:40:57 2012 +0200
@@ -1257,11 +1257,14 @@
# if uri is empty launch discovery dialog
if uri == "":
- # Launch Service Discovery dialog
- dialog = DiscoveryDialog(self.AppFrame)
- answer = dialog.ShowModal()
- uri = dialog.GetURI()
- dialog.Destroy()
+ try:
+ # Launch Service Discovery dialog
+ dialog = DiscoveryDialog(self.AppFrame)
+ answer = dialog.ShowModal()
+ uri = dialog.GetURI()
+ dialog.Destroy()
+ except:
+ uri = None
# Nothing choosed or cancel button
if uri is None or answer == wx.ID_CANCEL: