Commits

Ruslan Osmanov committed e9cd73c

Fix python errors

  • Participants
  • Parent commits d5e1eea

Comments (0)

Files changed (1)

File host/beectl.py

 
 
 def get_editor(conf):
-    if 'bee_editor' in conf:
+    if conf and 'bee_editor' in conf:
         return conf['bee_editor']
 
     for e in ['gedit', 'kate', 'sublime', 'gvim',
     os.unlink(f[1])
 
     # Write message size
-    response = json.dumps({"text": text}
+    response = json.dumps({"text": text})
     sys.stdout.buffer.write(struct.pack('I', len(response)))
     # Write message itself
     sys.stdout.write(response)