core-lightning/plugins/clnrest
Peter Neuroth eb3b1b8134 clnrest: Import sys in except clause explicitly
This fixes a crash on startup of core-lightning where gevent could not
be imported. This happens before sys is imported and throws us into the
except clause which calls sys.
By importing it explicitly in the except clause we are not dependend of
the order of imports in the try bracket.

Signed-off-by: Peter Neuroth <pet.v.ne@gmail.com>

Changelog-Fixes: Plugin: clnrest crashed on startup when gevent was
missing.
2023-11-21 08:24:09 +01:00
..
.github/screenshots
utilities clnrest: prefixing all rest config options with cln 2023-11-16 11:21:04 +01:00
__init__.py plugin/clnrest: Updating package 2023-07-30 16:50:04 +09:30
clnrest.py clnrest: Import sys in except clause explicitly 2023-11-21 08:24:09 +01:00
Makefile meta: Update release checklist 2023-11-16 15:20:33 +01:00
poetry.lock plugin/clnrest: Adjusting flask-cors install after rebase 2023-09-29 16:00:05 +09:30
pyproject.toml CHANGELOG.md: Update for 23.11rc1 2023-11-03 14:49:12 +01:00
requirements.txt plugin/clnrest: Adjusting flask-cors install after rebase 2023-09-29 16:00:05 +09:30