Skip to content

Commit

Permalink
Merge pull request #2 from DikNuken/master
Browse files Browse the repository at this point in the history
Unicode support
  • Loading branch information
gotlium committed Jun 24, 2014
2 parents e10a95f + 5a403f3 commit 453306e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions mmc/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def __mmc_one_copy(self):
self.__mmc_check_is_running()
self.__mmc_lock()
except Exception, msg:
print '[MMC]', msg.__str__()
print '[MMC]', msg.__unicode__()

def execute(self, *args, **options):
self.__mmc_one_copy()
Expand All @@ -72,7 +72,7 @@ def execute(self, *args, **options):
self._no_monkey.execute(self, *args, **options)
except Exception, ex:
self._success = False
self._error_message = ex.__str__()
self._error_message = ex.__unicode__()
self._traceback = traceback.format_exc()

def __mmc_store_log(self):
Expand All @@ -90,7 +90,7 @@ def __mmc_store_log(self):
sys_argv=' '.join(map(unicode, sys.argv))
)
except Exception, msg:
print '[MMC] Logging broken with message:', msg.__str__()
print '[MMC] Logging broken with message:', msg.__unicode__()

def __mmc_send_mail(self):
if not self._success:
Expand Down
2 changes: 1 addition & 1 deletion mmc/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,4 @@ def send(cls, message):
send_mail(
SUBJECT, message, settings.DEFAULT_FROM_EMAIL, emails)
except Exception, msg:
print '[MMC]', msg.__str__()
print '[MMC]', msg.__unicode__()

0 comments on commit 453306e

Please sign in to comment.