From 20b1f687642ee91a423204ee13e14161df3946dd Mon Sep 17 00:00:00 2001 From: "louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13" Date: Sat, 14 Aug 2010 08:58:31 +0000 Subject: Fix a little bug on completion due to the separating line --- src/common.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/common.py') diff --git a/src/common.py b/src/common.py index bd79b788..93eca601 100644 --- a/src/common.py +++ b/src/common.py @@ -62,7 +62,13 @@ def debug(string): a CLI software """ fdes = open("debug", 'a') - fdes.write(string) + try: + fdes.write(string) + except: + try: + fdes.write(string.encode('utf-8')) + except: + fdes.write(string.encode('utf-8')) fdes.close() def get_base64_from_file(path): -- cgit v1.2.3