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

ValueError in column.py #115

Open
M5klTig3r opened this issue Feb 16, 2022 · 0 comments
Open

ValueError in column.py #115

M5klTig3r opened this issue Feb 16, 2022 · 0 comments

Comments

@M5klTig3r
Copy link

When I started my Anki today, I got this error in front of me:

Error 
An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed. 
If the issue only occurs when add-ons are enabled, please use the Tools>Add-ons menu item to disable some add-ons and restart Anki, repeat until you discover the add-on that is causing the problem. 
When you've discovered the add-on that is causing the problem, please report the issue on the add-ons section of our support site. 
Debug info:
Anki 2.1.49 (dc80804a) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2
Platform: Windows 10
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2022-02-15 11:17:02

Caught exception:
Traceback (most recent call last):
  File "aqt\webview.py", line 41, in cmd
  File "aqt\webview.py", line 142, in _onCmd
  File "aqt\webview.py", line 595, in _onBridgeCmd
  File "C:\Users\andyt\AppData\Roaming\Anki2\addons21\877182321\column.py", line 13, in _linkHandler
    (cmd, arg) = url.split(":")
ValueError: too many values to unpack (expected 2)

I searched a little bit and found on your add-on website that somebody fixed the issue with these lines:

def _linkHandler(self, url):
if ":" in url:
##(cmd, arg) = url.split(":")
param = url.split(":")
cmd = param[0]
arg = param[1:len(param)-1]
if cmd == "dragColumn":
return columnHandler(self, arg)
elif cmd == "optsColumn":
return columnOptions(self, arg)
return lastHandler(self, url)

I changed it and it works.
Still, I think that it would be a nice thing if you'd changed it right away, cause not many can do this!

If you have any questions, please contact me.

Best regards,
Andrea

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