vitalyrodnenko/geeknote

TypeError: ENMLtoText() takes exactly 1 argument (2 given)

Opened this issue · 0 comments

Hello,
I have a crash with "--raw" option :

# geeknote show 5 --raw
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/geeknote-0.2a-py2.7.egg/geeknote/geeknote.py", line 902, in main
    Notes().show(**ARGS)
  File "/usr/local/lib/python2.7/dist-packages/geeknote-0.2a-py2.7.egg/geeknote/geeknote.py", line 695, in show
    out.showNoteRaw(note)
  File "/usr/local/lib/python2.7/dist-packages/geeknote-0.2a-py2.7.egg/geeknote/out.py", line 37, in wrapped
    result = fn(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/geeknote-0.2a-py2.7.egg/geeknote/out.py", line 184, in showNoteRaw
    printLine(Editor.ENMLtoText(note.content, 'pre'))
TypeError: ENMLtoText() takes exactly 1 argument (2 given)

To fix this:

--- /usr/local/lib/python2.7/dist-packages/geeknote-0.2a-py2.7.egg/geeknote/out.py.orig 2016-10-27 22:56:12.245926020 +0200
+++ /usr/local/lib/python2.7/dist-packages/geeknote-0.2a-py2.7.egg/geeknote/out.py      2016-10-27 22:56:50.906582097 +0200
@@ -181,7 +181,7 @@

 @preloaderStop
 def showNoteRaw(note):
-    printLine(Editor.ENMLtoText(note.content, 'pre'))
+    printLine(Editor.ENMLtoText(note.content))

 @preloaderStop
 def showUser(user, fullInfo):

Best,