src/eric7/Debugger/DebugServer.py

branch
eric7
changeset 9483
1208b0ef8ccb
parent 9473
3f23dbf37dbe
child 9485
0f3620304d7a
equal deleted inserted replaced
9482:a2bc06a54d9d 9483:1208b0ef8ccb
2183 Public method to get the string for the project environment. 2183 Public method to get the string for the project environment.
2184 2184
2185 @return string for the project environment 2185 @return string for the project environment
2186 @rtype str 2186 @rtype str
2187 """ 2187 """
2188 if ericApp().getObject("Project").isOpen(): 2188 try:
2189 return self.tr("<project>") 2189 if ericApp().getObject("Project").isOpen():
2190 else: 2190 return self.tr("<project>")
2191 else:
2192 return ""
2193 except KeyError:
2194 # The project object is not present
2191 return "" 2195 return ""

eric ide

mercurial