Commit 05a3ec17 authored by Matthieu Cattin's avatar Matthieu Cattin

fmc_adc: Fix bug in exception raising.

Missing argument in string print.
parent 29542254
......@@ -245,7 +245,7 @@ class CFmcAdc100m:
def channel_check(self, channel):
if(channel < 1 or channel > 4):
raise FmcAdc100mOperationError("Channel number %d, not in range 1 to 4.")
raise FmcAdc100mOperationError("Channel number %d, not in range 1 to 4." % channel)
else:
return channel
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment