def set_gain(self, gain_db):
		if gain_db == 'AUTO':
			self.sdr.set_manual_gain_enabled(False)
			self.auto_gain = True
			self._clear_intensity()
		else:
			try:
				self.sdr.set_gain(float(gain_db))
				self.auto_gain = False
				self._clear_intensity()
			except IOError:
				# Error setting value, ignore it for now but in the future consider
				# adding an error message dialog.
				pass
Dumps the given exceptions info, as returned by ``sys.exc_info()``
dataset/ETHPy150Open adafruit/FreqShow/model.py/FreqShowModel.set_gain--crossover with--dataset/ETHPy150Open tomerfiliba/rpyc/rpyc/core/vinegar.py/dump