added my @ to the error message
This commit is contained in:
		
							parent
							
								
									e58097615d
								
							
						
					
					
						commit
						0a66c1db51
					
				| 
						 | 
					@ -12,9 +12,6 @@ def make_sentence(output):
 | 
				
			||||||
		def test_sentence_input(self, sentence):
 | 
							def test_sentence_input(self, sentence):
 | 
				
			||||||
			return True #all sentences are valid <3
 | 
								return True #all sentences are valid <3
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	# with open("corpus.txt", encoding="utf-8") as fp:
 | 
					 | 
				
			||||||
	#   model = nlt_fixed(fp.read())
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	shutil.copyfile("toots.db", "toots-copy.db")
 | 
						shutil.copyfile("toots.db", "toots-copy.db")
 | 
				
			||||||
	db = sqlite3.connect("toots-copy.db")
 | 
						db = sqlite3.connect("toots-copy.db")
 | 
				
			||||||
	db.text_factory=str
 | 
						db.text_factory=str
 | 
				
			||||||
| 
						 | 
					@ -55,7 +52,7 @@ def make_toot_markov(query = None):
 | 
				
			||||||
		else:
 | 
							else:
 | 
				
			||||||
			toot = pin.recv()
 | 
								toot = pin.recv()
 | 
				
			||||||
	if toot == None:
 | 
						if toot == None:
 | 
				
			||||||
		toot = "Toot generation failed! Contact Lynne for assistance."
 | 
							toot = "Toot generation failed! Contact Lynne (lynnesbian@fedi.lynnesbian.space) for assistance."
 | 
				
			||||||
	return {
 | 
						return {
 | 
				
			||||||
			"toot":toot,
 | 
								"toot":toot,
 | 
				
			||||||
			"media":None
 | 
								"media":None
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in New Issue