summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpoezio/theming.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/poezio/theming.py b/poezio/theming.py
index 0ead632e..c740b86e 100755
--- a/poezio/theming.py
+++ b/poezio/theming.py
@@ -66,7 +66,11 @@ It is used for example to define color gradient, etc.
import logging
log = logging.getLogger(__name__)
-from poezio.config import config
+try:
+ from poezio.config import config
+except ImportError:
+ if __name__ != "__main__":
+ raise
import curses
import functools