well, you can parse it only once and set default in more reasonable way like

```
ip, port = IscsiLioData.GetIpAndPort(ipp)


#and then 
ip || ""

# and 
port || "3260"
```