From 5cd5b8119812c0ae086a3a69d1e61127145740c6 Mon Sep 17 00:00:00 2001 From: croneter Date: Sun, 13 Jan 2019 17:30:47 +0100 Subject: [PATCH] Fix to database parameter must be string --- default.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/default.py b/default.py index b5dffe69..5423c57e 100644 --- a/default.py +++ b/default.py @@ -189,5 +189,12 @@ class Main(): if __name__ == '__main__': log.info('%s started' % v.ADDON_ID) - Main() + try: + v.database_paths() + except RuntimeError as err: + # Database does not exists + log.error('The current Kodi version is incompatible') + log.error('Error: %s', err) + else: + Main() log.info('%s stopped' % v.ADDON_ID)