Index: filters/get_subscriptions.py |
diff --git a/filters/get_subscriptions.py b/filters/get_subscriptions.py |
index e87459808f6956f4dadbb6eec51d3779cc9f4345..5a41ae460a86ce4e4eea6c0fd43f63d9f14c4e6f 100644 |
--- a/filters/get_subscriptions.py |
+++ b/filters/get_subscriptions.py |
@@ -17,10 +17,16 @@ import codecs |
import os |
import tarfile |
import urllib |
+import logging |
from ConfigParser import SafeConfigParser |
def get_subscriptions(_): |
- from sitescripts.subscriptions import subscriptionParser |
+ try: |
+ from sitescripts.subscriptions import subscriptionParser |
+ except ImportError: |
+ logging.warning("Unable to import sitescripts, proceeding with empty " |
+ "subscriptions list.") |
kzar
2016/02/23 15:01:38
Nit: The indentation here looks wrong, the string
juliandoucette
2016/02/23 15:08:12
My mistake.
|
+ return [] |
result = {} |
utf8_reader = codecs.getreader('utf8') |