Browse Source

Make it easier to die properly

Imply str() on msg so that anything can be passed
Alois Mahdal 10 years ago
parent
commit
46830ab12e
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      include/sardine.py

+ 1
- 1
include/sardine.py View File

@@ -112,7 +112,7 @@ class App:
112 112
         self.pluginpath = path
113 113
 
114 114
     def die(self, msg, rv=9):
115
-        sys.stderr.write(msg + "\n")
115
+        sys.stderr.write("%s\n" % msg)
116 116
         self.exit(rv)
117 117
 
118 118
     def exit(self, rv=0):