Skip to content

Commit

Permalink
Failing to get data from the ZI is a hard error (#685)
Browse files Browse the repository at this point in the history
dont pretend that it's not
  • Loading branch information
jenshnielsen authored and WilliamHPNielsen committed Oct 16, 2017
1 parent b087b32 commit df4d541
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions qcodes/instrument_drivers/ZI/ZIUHFLI.py
Original file line number Diff line number Diff line change
Expand Up @@ -495,8 +495,10 @@ def get(self):
error_counter += 1

if error_counter >= num_retries:
log.warning('[+] ZI scope acquisition failed, maximum number'
'of retries performed. No data returned')
log.error('[+] ZI scope acquisition failed, maximum number'
'of retries performed. No data returned')
raise RuntimeError('[+] ZI scope acquisition failed, maximum number'
'of retries performed. No data returned')
finally:
# cleanup and make ready for next scope acquisition
scope.finish()
Expand Down

0 comments on commit df4d541

Please sign in to comment.