Skip to content
Snippets Groups Projects
Commit 02debefd authored by Moul's avatar Moul
Browse files

[mod] #396: wot_tools: Handle 404 error not found exception

Remove useless ValueError exception
parent 7dd5bc92
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,8 @@
# You should have received a copy of the GNU Affero General Public License
# along with Silkaj. If not, see <https://www.gnu.org/licenses/>.
import urllib
from duniterpy.api.bma import wot
from duniterpy.api.errors import DuniterError
......@@ -56,8 +58,8 @@ def wot_lookup(identifier):
return results["results"]
except DuniterError as e:
message_exit(e.message)
except ValueError as e:
pass
except urllib.error.HTTPError as e:
message_exit(e)
def identities_from_pubkeys(pubkeys, uids):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment