From 09d3f103832bb7e26949a8f2df60c25851886bdc Mon Sep 17 00:00:00 2001 From: Krateng Date: Sat, 5 Sep 2020 16:44:25 +0200 Subject: [PATCH] Added some debug output --- README.md | 2 +- maloja/__pkginfo__.py | 2 +- maloja/apis/_base.py | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index eb102d1..ba4cea3 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ You can check [my own Maloja page](https://maloja.krateng.ch) to see what it loo > **IMPORTANT**: With the update 2.7, the backend has been reworked to use a password. With a normal installation, you are asked to provide a password on setup. If you use docker or skip the setup for other reasons, you need to provide the environment variable `MALOJA_FORCE_PASSWORD` on first startup. -> **IMPORTANT**: With the update 2.9, the API endpoints have changed. I tried to make it backwards compatible, but if your scrobbler breaks, try to update the url first. +> **IMPORTANT**: With the update 2.9, the API endpoints have changed. I tried to make it backwards compatible, but if your scrobbler breaks, try to update the URL first. ## Table of Contents * [Why not Last.fm / Libre.fm / GNU FM?](#why-not-lastfm--librefm--gnu-fm) diff --git a/maloja/__pkginfo__.py b/maloja/__pkginfo__.py index 3a1065e..aeb9e30 100644 --- a/maloja/__pkginfo__.py +++ b/maloja/__pkginfo__.py @@ -5,7 +5,7 @@ author = { "email":"maloja@krateng.dev", "github": "krateng" } -version = 2,9,4 +version = 2,9,5 versionstr = ".".join(str(n) for n in version) links = { "pypi":"malojaserver", diff --git a/maloja/apis/_base.py b/maloja/apis/_base.py index f2deff7..6e45697 100644 --- a/maloja/apis/_base.py +++ b/maloja/apis/_base.py @@ -81,6 +81,8 @@ class APIHandler: methodname = self.get_method(path,keys) method = self.methods[methodname] except: + log("Could not find a handler for method " + methodname + " in API " + self.__apiname__,module="debug") + log("Keys: " + str(keys),module="debug") raise InvalidMethodException() return method(path,keys)