Skip to content

Commit

Permalink
pep8 and typo
Browse files Browse the repository at this point in the history
  • Loading branch information
tino097 committed Sep 4, 2018
1 parent e51a1e2 commit 3af4b0b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion ckan/cli/__init__.py
Expand Up @@ -12,8 +12,10 @@
from ckan.config.environment import load_environment
from ckan.config.middleware import make_app


log = logging.getLogger(__name__)


click_config_option = click.option(
u'-c',
u'--config',
Expand Down Expand Up @@ -51,7 +53,7 @@ def _load_config(config=None):
exit(msg)

fileConfig(filename)
log.debug("Using " + filename)
log.debug(u"Using " + filename)
return appconfig(u'config:' + filename)

load_config = _load_config
2 changes: 1 addition & 1 deletion ckan/cli/database/db.py
Expand Up @@ -57,7 +57,7 @@ def initdb(config):
load_environment(conf.global_conf, conf.local_conf)
try:
import ckan.model as model
model.repo.clean_db()
model.repo.upgrade_db()
except Exception as e:
print(e)
print(u'Upgrading DB: SUCCESS')

0 comments on commit 3af4b0b

Please sign in to comment.