Handle = _HANDLE_TYPE_MAPPING[type]
key = Handle, connection.username, args
try:
Handle = _HANDLE_TYPE_MAPPING[type]
key = Handle, connection.username, args
try:
- handleStatus = "Is New!" if isNewHandle else "From Cache"
- _moduleLogger.debug("Created Handle: %r (%s)" % (handle, handleStatus))
+ if isNewHandle:
+ handleStatus = "Is New!" if isNewHandle else "From Cache"
+ _moduleLogger.debug("Created Handle: %r (%s)" % (handle, handleStatus))