Why doesn't rdp.open_desktop_session raise an exception?

Options

Why doesn't rdp.open_desktop_session('xxxxxxxxxx') raise an exception when it can not connect? It only writes to stout. That makes it impossible to handle/notify connection problems...

You can try the code below (while the Desktop is closed):

import refinitiv.dataplatform as rdp
try:
rdp.open_desktop_session('<APIKey>')
except:
print("You should see this print on exception")

Also, is there somewhere a proper documentation of the RDP library, I mean not those 6 pages docs but with all functions/methods/errors etc...?

Tagged:

Best Answer

  • umer.nalla
    umer.nalla LSEG
    Answer ✓

    Hi @sdittmar

    Just to confirm that the above issue has been reported to both the RD Python Library and RDP Python library teams and should be addressed in a future release of each library.

Answers

  • Hi @sdittmar

    In addition to my colleague's reply, I would recommend you look at the newer RD Library for Python - which is currently in Beta and due for release in the coming months.

    It should have much-improved error/session handling than RDP Library once it is released.
    It will also have fuller documentation - I have been advised by the RD Library team that they are awaiting the completion of the documentation to confirm the release date.

    For a position statement on the older RDP Library please see the overview page.