mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 22:45:27 +01:00
Print proper error when version comparision fail
This commit is contained in:
parent
af3c400fb0
commit
ea4ff32616
1 changed files with 5 additions and 2 deletions
|
@ -653,8 +653,11 @@ class LightningD(TailableProc):
|
|||
# In case you want specific ordering!
|
||||
self.early_opts = []
|
||||
|
||||
if VersionSpec.parse(">=v23.11").matches(self.cln_version):
|
||||
self.early_opts.append('--developer')
|
||||
try:
|
||||
if VersionSpec.parse(">=v23.11").matches(self.cln_version):
|
||||
self.early_opts.append('--developer')
|
||||
except Exception:
|
||||
raise ValueError(f"Invalid version {type(self.cln_version)} - {self.cln_version}")
|
||||
|
||||
def cleanup(self):
|
||||
# To force blackhole to exit, disconnect file must be truncated!
|
||||
|
|
Loading…
Add table
Reference in a new issue