[8.0]fintech register strip

This commit is contained in:
Luc De Meyer 2020-07-25 21:07:05 +02:00
parent 9af00e02ba
commit 5613480cc6

View File

@ -22,11 +22,13 @@ fintech_register_users = config.get('fintech_register_users')
try: try:
if fintech: if fintech:
fintech_register_users = fintech_register_users \
and [x.strip() for x in fintech_register_users.split(',')]
fintech.cryptolib = 'cryptography' fintech.cryptolib = 'cryptography'
fintech.register( fintech.register(
fintech_register_name, fintech_register_name,
fintech_register_keycode, fintech_register_keycode,
fintech_register_users.split(',')) fintech_register_users)
except RuntimeError, e: except RuntimeError, e:
if e.message == "'register' can be called only once": if e.message == "'register' can be called only once":
pass pass