summaryrefslogtreecommitdiff
path: root/poezio
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2016-08-24 23:13:21 +0200
committermathieui <mathieui@mathieui.net>2016-08-24 23:13:21 +0200
commitec04070611e546cfc1ac5c2e2ea2dc2a29708b37 (patch)
treec1106d50a332b22d2edcd39d5d2fbae1226efe7b /poezio
parent3ed31ed282f1290db167f0c169447defc22b2d1f (diff)
downloadpoezio-ec04070611e546cfc1ac5c2e2ea2dc2a29708b37.tar.gz
poezio-ec04070611e546cfc1ac5c2e2ea2dc2a29708b37.tar.bz2
poezio-ec04070611e546cfc1ac5c2e2ea2dc2a29708b37.tar.xz
poezio-ec04070611e546cfc1ac5c2e2ea2dc2a29708b37.zip
Don’t traceback in theming if called without poezio installed
If we just want to see the color list, we shouldn’t need to be able to import poezio.config
Diffstat (limited to 'poezio')
-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