Skip to content

Commit

Permalink
fix(infra.py): fixed PEP 8. ref #402 @0.25h
Browse files Browse the repository at this point in the history
  • Loading branch information
hayatedayon committed Jul 30, 2018
1 parent 948ee3d commit 40e116f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions infra.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def reset_datastore(user_id):
try:
key = ndb.Key.from_path(u'User', user_id)
ndb.delete(key)
except:
except Exception:
pass


Expand All @@ -50,7 +50,7 @@ def check_word_datastore(user_id, check_word):
if check_word in words:
return False
return True
except:
except Exception:
return True


Expand All @@ -60,7 +60,7 @@ def save_word_datastore(user_id, save_word):
user = ndb.get(key)
user.words += u',' + save_word
user.count += 1
except:
except Exception:
user = User()
user.user_id = user_id
user.words += save_word
Expand Down

0 comments on commit 40e116f

Please sign in to comment.