initial.txt fallback (no markov)
This commit is contained in:
parent
617f6cc6f3
commit
c4352df8fc
1 changed files with 4 additions and 1 deletions
|
@ -464,7 +464,10 @@ if __name__ == '__main__':
|
|||
logging.error("No config file found, stopping.")
|
||||
sys.exit(-1)
|
||||
|
||||
markov = MarkovBlabberer("initial.txt")
|
||||
try:
|
||||
markov = MarkovBlabberer("initial.txt")
|
||||
except FileNotFoundError:
|
||||
markov = None
|
||||
|
||||
delojza = DelojzaBot(config.get('delojza', 'tg_api_key'),
|
||||
config.get('delojza', 'OUT_DIR', fallback=os.path.join(_DIR_, "out")),
|
||||
|
|
Loading…
Reference in a new issue