def location(self):
        """Return the location of the printer."""
        try:
            return self.data.get('identity').get('location')
        except (KeyError, AttributeError):
            return self.device_status_simple('')
def location ( self ) : try : return self . data . get ( 'identity' ) . get ( 'location' ) except ( KeyError , AttributeError ) : return self . device_status_simple ( '' )
Return the location of the printer.