Skip to content

Commit

Permalink
Handle #1806
Browse files Browse the repository at this point in the history
  • Loading branch information
ralsina committed Jun 10, 2015
1 parent 5e45dd7 commit 3495757
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES.txt
Expand Up @@ -11,6 +11,7 @@ Features
Bugfixes
--------

* Handle rare gettz failure (Issue #1806)
* Handle missing ws4py better in auto plugin (Issue #1803)
* IDNA mixing unicode/bytes in python 3 (Issue #1802)
* Cleaner splitting of metadata in onefile posts (Issue #973)
Expand Down
8 changes: 6 additions & 2 deletions nikola/nikola.py
Expand Up @@ -655,9 +655,13 @@ def __init__(self, **config):
utils.LOGGER.warn("Please explicitly add the setting to your conf.py with the desired value, as the setting will default to False in the future.")

# We use one global tzinfo object all over Nikola.
self.tzinfo = dateutil.tz.gettz(self.config['TIMEZONE'])
try:
self.tzinfo = dateutil.tz.gettz(self.config['TIMEZONE'])
except Exception as exc:
utils.LOGGER.warn("Error getting TZ: {}", exc)
self.tzinfo = dateutil.tz.gettz()
self.config['__tzinfo__'] = self.tzinfo

self.plugin_manager = PluginManager(categories_filter={
"Command": Command,
"Task": Task,
Expand Down

0 comments on commit 3495757

Please sign in to comment.