From 072e9a74307c01ab9a03cd77f006095a5997c929 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Thu, 9 Mar 2017 23:54:45 -0800 Subject: [PATCH] Fix NoSuchUser being raised with None due to username/id --- etiquette/photodb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etiquette/photodb.py b/etiquette/photodb.py index 36c371a..91490b6 100644 --- a/etiquette/photodb.py +++ b/etiquette/photodb.py @@ -987,7 +987,7 @@ class PDBUserMixin: if fetch is not None: return objects.User(self, fetch) else: - raise exceptions.NoSuchUser(username) + raise exceptions.NoSuchUser(username or id) def get_user_id_or_none(self, user): '''