fixed conditional import with testing suite

This commit is contained in:
Manuel Cortez 2019-06-12 22:42:51 -05:00
parent 99d02c97f0
commit dd23ce6adf

View File

@ -3,5 +3,5 @@
import config
from . import mailru, youtube, zaycev
# conditional imports
if config.app["services"]["tidal"]["username"] != "" and config.app["services"]["tidal"]["password"] != "":
if config.app != None and config.app["services"]["tidal"]["username"] != "" and config.app["services"]["tidal"]["password"] != "":
from . import tidal