Compare commits

...

3 Commits

Author SHA1 Message Date
Mads Marquart
dd5e1024db Bump version: 1.7.1 → 1.7.2 2019-07-04 00:34:11 +02:00
Mads Marquart
31d13f8fae Fix #441, introduced in bc551a6 2019-07-04 00:33:08 +02:00
Mads Marquart
19b4d929e2 Add bump2version (to avoid mistakes like pushing wrong tag names) 2019-07-04 00:25:05 +02:00
4 changed files with 13 additions and 2 deletions

7
.bumpversion.cfg Normal file
View File

@@ -0,0 +1,7 @@
[bumpversion]
current_version = 1.7.2
commit = True
tag = True
[bumpversion:file:fbchat/__init__.py]

View File

@@ -13,7 +13,7 @@ from ._client import Client
from ._util import log # TODO: Remove this (from examples too)
__title__ = "fbchat"
__version__ = "1.7.1"
__version__ = "1.7.2"
__description__ = "Facebook Chat (Messenger) for Python"
__copyright__ = "Copyright 2015 - 2019 by Taehoon Kim"

View File

@@ -136,7 +136,7 @@ def handle_payload_error(j):
def handle_graphql_errors(j):
errors = []
if "error" in j:
if j.get("error"):
errors = [j["error"]]
if "errors" in j:
errors = j["errors"]

View File

@@ -60,3 +60,7 @@ docs = [
lint = [
"black",
]
tools = [
# Fork of bumpversion, see https://github.com/c4urself/bump2version
"bump2version~=0.5.0",
]