Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
mcarans committed Oct 9, 2017
1 parent c9c27d7 commit d4fcdf7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,11 @@
from hdx.data.dataset import Dataset
from hdx.hdx_configuration import Configuration
from hxl.io import HXLTagsNotFoundException
from slugify import slugify

logger = logging.getLogger(__name__)


class HXLFrictionlessError(Exception):
class HDXFrictionlessError(Exception):
pass


Expand All @@ -32,7 +31,7 @@ def __init__(self):
hxl_schema_dataset = Configuration.read()['hxl_schema_dataset']
dataset = Dataset.read_from_hdx(hxl_schema_dataset)
if dataset is None:
raise HXLFrictionlessError('HXL Schema Dataset: %s does not exist!' % hxl_schema_dataset)
raise HDXFrictionlessError('HXL Schema Dataset: %s does not exist!' % hxl_schema_dataset)
resources = dataset.get_resources()
hashtag_schema = None
attribute_schema = None
Expand All @@ -43,7 +42,7 @@ def __init__(self):
attribute_schema = resource['url']
logger.info('hashtag_schema = %s, attribute schema = %s' % (hashtag_schema, attribute_schema))
if not hashtag_schema or not attribute_schema:
raise HXLFrictionlessError('Missing schema!')
raise HDXFrictionlessError('Missing schema!')
dataset = hxl.data(hashtag_schema)
self.hashtag_types = dict()
for row in dataset:
Expand Down
2 changes: 1 addition & 1 deletion run.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

from hdx.facades.hdx_scraperwiki import facade

from hxl_frictionless.converter import Converter
from hdx_frictionless.converter import Converter

logger = logging.getLogger(__name__)

Expand Down

0 comments on commit d4fcdf7

Please sign in to comment.