Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lealinux opened this issue Oct 27, 2016 · 0 comments
Open

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

lealinux opened this issue Oct 27, 2016 · 0 comments

Comments

@lealinux
Copy link

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,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant