Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def get_callingstationid(self):
try:return tools.DecodeString(self.get(31)[0])
except:return None
def get_macaddr(self):
try:return tools.DecodeString(self.get(31)[0]).replace("-",":")
except:return None
def get_acctsessionid(self):
try:return tools.DecodeString(self.get(44)[0])
except:return None
def get_username(self):
try:return tools.DecodeString(self.get(1)[0])
except:return None
def get_nasportid(self):
try:return tools.DecodeString(self.get(87)[0])
except:return None
def get_nasclass(self):
try:return tools.DecodeString(self.get(25)[0])
except:return None