code: def getDescriptor(self, dir):
  		
  		try:
  			return self.getProjectDescriptor(dir)
  		except:
  			try:
  				return self.getPluginDescriptor(dir)
  			except:
  				raise UnrealManagerException('could not detect an Unreal project or plugin in the directory "{}"'.format(dir))
docs: Detects the descriptor file for either an Unreal project or an Unreal plugin in the specified directory