genouest / biomaj-daemon

micro service to manage biomaj client requests and bank updates
0 stars 3 forks source link

Error in biomaj-cli 'show' #6

Open mboudet opened 1 week ago

mboudet commented 1 week ago
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/biomaj_daemon/daemon/biomaj_daemon_web.py", line 1086, in biomaj_daemon
    (res, msg) = biomaj_client_action(options_object, config)
  File "/usr/local/lib/python3.9/dist-packages/biomaj_daemon/daemon/utils.py", line 955, in biomaj_client_action
    return biomaj_show(options, config)
  File "/usr/local/lib/python3.9/dist-packages/biomaj_daemon/daemon/utils.py", line 318, in biomaj_show
    return (True, msg)
UnboundLocalError: local variable 'msg' referenced before assignment
osallou commented 1 week ago

case where no production release found (total or with option release)

msg should be initialized to None at function start and before leaving

if len(results) == 0:
    reutrn (False, "no production release found")

:-)

mboudet commented 1 week ago

Thank your Mr @osallou :p

osallou commented 1 week ago

C est gratuit, ahhh la nostalgie ;-)

abretaud commented 1 week ago

Ouah, un nouveau ministère contributeur :heart_eyes: