# HG changeset patch # User souliane # Date 1431703592 -7200 # Node ID c902ce09d4ed896e9122d79b094c43269a31134e # Parent 0d20fb28c32e2016eed16c429d9ff93b55e72ce9 put the external module import between try except diff -r 0d20fb28c32e -r c902ce09d4ed sat_website/local_settings.py --- a/sat_website/local_settings.py Fri May 15 17:15:40 2015 +0200 +++ b/sat_website/local_settings.py Fri May 15 17:26:32 2015 +0200 @@ -150,4 +150,7 @@ # Import another settings file that can override these settings (for example to daily update the stats when you don't want a script to directly modify this file) from sys import path path.append('/home/souliane') -from sat_website_external_settings import * +try: + from sat_website_external_settings import * +except ImportError: + pass