From 68093b2130e5e27e16d4783afb1243c3d60287d0 Mon Sep 17 00:00:00 2001 From: Rob Weber Date: Mon, 26 Aug 2019 15:36:53 -0500 Subject: [PATCH] part of #133 --- resources/lib/authorizers.py | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/resources/lib/authorizers.py b/resources/lib/authorizers.py index cda56eb..0364afe 100644 --- a/resources/lib/authorizers.py +++ b/resources/lib/authorizers.py @@ -3,9 +3,18 @@ import xbmcgui import xbmcvfs import resources.lib.tinyurl as tinyurl import resources.lib.utils as utils -import dropbox -from resources.lib.pydrive.auth import GoogleAuth -from resources.lib.pydrive.drive import GoogleDrive + +#don't die on import error yet, these might not even get used +try: + import dropbox +except ImportError: + pass + +try: + from resources.lib.pydrive.auth import GoogleAuth + from resources.lib.pydrive.drive import GoogleDrive +except ImportError: + pass class DropboxAuthorizer: APP_KEY = ""