def refresh_inventory(data=None):
 try:
  _inventory.refresh(data)
 except AttributeError:
  print('_inventory was not initialized')

def refresh_inventory ( data = None ) : try : _inventory . refresh ( data ) except AttributeError : print ( '_inventory was not initialized' )
refreshes the cached inventory .