# -*- coding: utf-8 -*-
import logging
from django.conf import settings
from django.core.mail import send_mail

def cronosDebug(msg, logfile):
    logging.basicConfig(level = logging.DEBUG, format = '%(asctime)s: %(message)s', filename = settings.LOGDIR + logfile, filemode = 'a+')
    logging.debug(msg)

def mailCronosAdmin(title, message):
    try:
        send_mail(title, message, 'notification@cronos.teilar.gr', ['cronos@teilar.gr'])
    except:
        pass

class CronosError(Exception):
    def __init__(self, value):
        self.value = value
    def __str__(self):
        return repr(self.value)

# -*- coding: utf-8 -*-
import logging
from django.conf import settings
from django.core.mail import send_mail

def cronos_debug(msg, logfile):
    logging.basicConfig(level = logging.DEBUG, format = '%(asctime)s: %(message)s', filename = settings.LOGDIR + logfile, filemode = 'a+')
    logging.debug(msg)

def mail_cronos_admin(title, message):
    try:
        send_mail(title, message, 'notification@cronos.teilar.gr', ['cronos@teilar.gr'])
    except:
        pass

class CronosError(Exception):
    def __init__(self, value):
        self.value = value
    def __unicode__(self):
        return repr(self.value)

Rename libraries, I'll prefer underscores instead of stuck names Prefer unicodes in CronosError
Rename libraries, I'll prefer underscores instead of stuck names
Prefer unicodes in CronosError
