Closed Amp63 closed 1 month ago
Describe the bug If you try to use the scan feature from the API on a plot with no templates, the game crashes.
To Reproduce
import websocket ws = websocket.WebSocket() ws.connect('ws://localhost:31375') ws.recv() # auth ws.send('scan') ws.recv() # received templates (should be nothing) ws.close()
Expected behavior The response is an empty string or some other indicator that no templates were found.
Screenshots Here's the crash report: https://bytebin.lucko.me/bH1lOkgVdQ
Checks Please check all these for more infomation with the bug.
A little late to commit this fix, it should now just respond with empty. (fixed in this commit)
empty
Describe the bug If you try to use the scan feature from the API on a plot with no templates, the game crashes.
To Reproduce
Expected behavior The response is an empty string or some other indicator that no templates were found.
Screenshots Here's the crash report: https://bytebin.lucko.me/bH1lOkgVdQ
Checks Please check all these for more infomation with the bug.