<commit_before>import requests
import urllib
import json
import jsonpickle
import myanimelist.session
import mal_settings
import sqlite3

class Entry:
	def __init__(self, titles, episode):
		self.titles = titles
		self.episode = episode

def main():

	try:
		# Populate db with current 'watching' list on MAL

		#check if it exists
		conn = sqlite3.connect('mal_db.db')
		c = conn.cursor()
		c.execute('CREATE TABLE watching_list(anime_title, alternative_titles, current_ep, max_ep)')
		#may or may not be the right thing to do idk
		c.execute('CREATE UNIQUE INDEX anime_title ON watching_list (anime_title)')
		conn.close()
	except:
		"Error establishing db"

	# get watching list and episodes
	session = myanimelist.session.Session(username=mal_settings.username, password=<PASSWORD>)
	session.login()
	user_list = myanimelist.anime_list.AnimeList(session, mal_settings.user)

	for key, value in user_list.list.items():

		if value['status'] == "Watching":

			title = key.title
			other_titles = []
			episode = value['episodes_watched']
			max_eps = key.episodes<commit_msg>Fixed error message, because it isn't an error if it works the way I want it to<commit_after>import requests
import urllib
import json
import jsonpickle
import myanimelist.session
import mal_settings
import sqlite3

class Entry:
	def __init__(self, titles, episode):
		self.titles = titles
		self.episode = episode

def main():

	try:
		# Populate db with current 'watching' list on MAL

		#check if it exists
		conn = sqlite3.connect('mal_db.db')
		c = conn.cursor()
		c.execute('CREATE TABLE watching_list(anime_title, alternative_titles, current_ep, max_ep)')
		#may or may not be the right thing to do idk
		c.execute('CREATE UNIQUE INDEX anime_title ON watching_list (anime_title)')
		conn.close()
	except:
		print "DB already exists or error establishing DB"
	# get watching list and episodes
	session = myanimelist.session.Session(username=mal_settings.username, password=mal_settings.password)
	session.login()
	user_list = myanimelist.anime_list.AnimeList(session, mal_settings.user)

	for key, value in user_list.list.items():

		if value['status'] == "Watching":

			title = key.title
			other_titles = []
			episode = value['episodes_watched']
			max_eps = key.episodes
{'fraction_non_alphanumeric': 0.09428950863213811, 'fraction_numerical': 0.0017706949977866313, 'mean_word_length': 4.794871794871795, 'pattern_counts': {'":': 2, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '286200', 'n_tokens_mistral': 792, 'n_tokens_neox': 723, 'n_words': 218}