# Buggy code
def __init__(self, main_config, main_section, target):
    self.config = ServiceConfig(self.CONFIG_PREFIX, main_config, target)
    self.main_section = main_section
    self.main_config = main_config
    self.target = target

    self.desc_len = self._get_config_or_default("description_length", 35, asint)
    self.anno_len = self._get_config_or_default("annotation_length", 45, asint)
    self.inline_links = self._get_config_or_default("inline_links", True, asbool)
    self.annotation_links = self._get_config_or_default(
        "annotation_links", not self.inline_links, asbool
    )
    self.annotation_comments = self._get_config_or_default(
        "annotation_comments", True, asbool
    )
    self.shorten = self._get_config_or_default("shorten", False, asbool)
    self.default_priority = self._get_config_or_default("default_priority", "M")

    self.add_tags = []
    if "add_tags" in self.config:
        for raw_option in self.config.get("add_tags").split(","):
            option = raw_option.strip(" +;")
            if option:
                self.add_tags.append(option)

    log.info("Working on [%s]", self.target)


# Traceback (KeyError)
Traceback (most recent call last):
File "/usr/local/bin/bugwarrior-pull", line 11, in <module>
load_entry_point('bugwarrior==1.5.1', 'console_scripts', 'bugwarrior-pull')()
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 700, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 680, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 873, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 508, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/bugwarrior-1.5.1-py2.7.egg/bugwarrior/command.py", line 73, in pull
synchronize(issue_generator, config, main_section, dry_run)
File "/usr/local/lib/python2.7/dist-packages/bugwarrior-1.5.1-py2.7.egg/bugwarrior/db.py", line 351, in synchronize
del issue_dict[field]
KeyError: u' description'

# Fixed code
def __init__(self, main_config, main_section, target):
    self.config = ServiceConfig(self.CONFIG_PREFIX, main_config, target)
    self.main_section = main_section
    self.main_config = main_config
    self.target = target

    self.desc_len = self._get_config_or_default("description_length", 35, asint)
    self.anno_len = self._get_config_or_default("annotation_length", 45, asint)
    self.inline_links = self._get_config_or_default("inline_links", True, asbool)
    self.annotation_links = self._get_config_or_default(
        "annotation_links", not self.inline_links, asbool
    )
    self.annotation_comments = self._get_config_or_default(
        "annotation_comments", True, asbool
    )
    self.shorten = self._get_config_or_default("shorten", False, asbool)
    self.default_priority = self._get_config_or_default("default_priority", "M")

    self.add_tags = []
    if "add_tags" in self.config:
        for raw_option in aslist(self.config.get("add_tags")):
            option = raw_option.strip(" +;")
            if option:
                self.add_tags.append(option)

    log.info("Working on [%s]", self.target)