From 165c6321537262bc7fb6a706dee524f8bf5ee485 Mon Sep 17 00:00:00 2001 From: codl Date: Sun, 30 Jul 2017 01:35:29 +0200 Subject: [PATCH] get up for school you're gonna be late --- model.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/model.py b/model.py index be09721..662a5a7 100644 --- a/model.py +++ b/model.py @@ -21,6 +21,8 @@ class RemoteIDMixin(object): @property def twitter_id(self): + if not self.id: + return None if self.service != "twitter": raise Exception("wrong service bucko") return self.id.split(":")[1]