Skip to content
Snippets Groups Projects
Commit 59493491 authored by Philip Elson's avatar Philip Elson :snake:
Browse files

Merge branch 'fix/inca-crash' into 'master'

Fix crash with InCA without accelerator

See merge request !74
parents 17fd4f05 034a8e93
Branches
Tags v2.4.0
1 merge request!74Fix crash with InCA without accelerator
Pipeline #3616376 failed
...@@ -136,7 +136,7 @@ class PyJapc: ...@@ -136,7 +136,7 @@ class PyJapc:
if ic.isConfigured(): if ic.isConfigured():
accelerator = ic.getAccelerator() accelerator = ic.getAccelerator()
if accelerator.getName() != incaAcceleratorName: if accelerator is not None and accelerator.getName() != incaAcceleratorName:
self.log.warning("INCA is already configured for {0}, cannot change it to {1}.".format( self.log.warning("INCA is already configured for {0}, cannot change it to {1}.".format(
accelerator.getName(), incaAcceleratorName accelerator.getName(), incaAcceleratorName
)) ))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment