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:
18
bot-sleek.py
18
bot-sleek.py
@@ -3,7 +3,23 @@
|
|||||||
import logging
|
import logging
|
||||||
|
|
||||||
from sleekxmpp import ClientXMPP
|
from sleekxmpp import ClientXMPP
|
||||||
from local_config import conf
|
|
||||||
|
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
|
import time
|
||||||
t = -time.time()
|
t = -time.time()
|
||||||
|
|||||||
Reference in New Issue
Block a user