Skip to content

Commit 53a31a6

Browse files
mshaileshr@gmail.commshaileshr@gmail.com
authored andcommitted
docstring updated
1 parent 94cab03 commit 53a31a6

File tree

3 files changed

+4
-41
lines changed

3 files changed

+4
-41
lines changed

contentstack/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
import warnings
1010

11-
__author__ = 'contentstack'
11+
__author__ = 'Contentstack'
1212
__status__ = 'debug'
1313
__version__ = '1.0.0'
1414
__package__ = 'contentstack'
@@ -22,7 +22,6 @@
2222
from .errors import Error, FileModeWarning
2323
from .http_connection import HTTPConnection
2424

25-
2625
import logging
2726
from logging import NullHandler
2827
logging.getLogger(__name__).addHandler(NullHandler())

contentstack/contentstack.py

Lines changed: 0 additions & 38 deletions
This file was deleted.

contentstack/http_connection.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@ def __parse_dict(self, response):
9292
return self.__parse_assets(dict_asset, 1)
9393
if 'assets' in result:
9494
asset_list = result['assets']
95-
asset_count = result['count']
95+
asset_count = 0
96+
if 'count' in result:
97+
asset_count = result['count']
9698
return self.__parse_assets(asset_list, asset_count)
9799
if 'content_type' in result:
98100
return result['content_type']

0 commit comments

Comments
 (0)