1
0
mirror of http://aero2k.de/t/repos/urlbot-native.git synced 2017-09-06 15:25:38 +02:00

add abort for unmodified local_config

This commit is contained in:
urlbot
2014-12-02 14:26:41 +01:00
parent 9f6a4c793c
commit 13bd53247e

View File

@@ -3,7 +3,23 @@
import logging
from sleekxmpp import ClientXMPP
try:
from local_config import conf
except ImportError:
import sys
sys.stderr.write('''
%s: E: local_config.py isn't tracked because of included secrets and
%s site specific configurations. Rename local_config.py.skel and
%s adjust to you needs.
'''[1:] % (
sys.argv[0],
' ' * len(sys.argv[0]),
' ' * len(sys.argv[0])
)
)
sys.exit(-1)
import time
t = -time.time()