Ok, think I've found what's happening, it was flashing up so quickly I didn't even spot the message until my 5th attempt.
From the log file :
2021-01-07 10:08:02.401 T:25521 ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'TypeError'>
Error Contents: function takes at most 2 arguments (3 given)
Traceback (most recent call last):
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.dropbox_auth/authenticate.py", line 111, in <module>
token = flow.finish(code).access_token
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.dropbox/lib/dropbox/oauth.py", line 247, in finish
return self._finish(code, None)
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.dropbox/lib/dropbox/oauth.py", line 120, in _finish
resp.raise_for_status()
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.requests/lib/requests/models.py", line 940, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url:
https://api.dropboxapi.com/oauth2/token
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.dropbox_auth/authenticate.py", line 113, in <module>
dialog.ok(utils.getString(32103), utils.getString(32706), str(e))
TypeError: function takes at most 2 arguments (3 given)
-->End of Python script error report<--