Remove leftover null ops from TWLight/users/models.py
@@ -141,7 +141,6 @@ def editor_reg_date(identity, global_userinfo):
).date()
except (TypeError, ValueError):
reg_date = None
- pass
return reg_date
@@ -479,12 +478,10 @@ class Editor(models.Model):
except AssertionError:
logger.exception("Could not fetch global_userinfo for User.")
return None
- pass
except:
logger.exception("Could not fetch global_userinfo for User.")
return None
- pass
def update_from_wikipedia(self, identity, lang):
"""
@@ -548,7 +545,6 @@ class Editor(models.Model):
# Email isn't guaranteed to be present in identity - don't do
# anything if we can't find it.
logger.exception("Unable to get Editor email address from Wikipedia.")
- pass
self.wp_registered = editor_reg_date(identity, global_userinfo)
self.wp_account_old_enough = editor_account_old_enough(self.wp_registered)
