Skip to content

Commit

Permalink
If there are no items, do not attempt to iterate
Browse files Browse the repository at this point in the history
svn path=/trunk/; revision=712
  • Loading branch information
Johan Dahlin committed Nov 2, 2007
1 parent 5179c48 commit e624121
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gobject/option.py
Expand Up @@ -164,8 +164,9 @@ def __init__(self, name, description, help_description="",

self.translation_domain = translation_domain

for option in option_list:
self.add_option(option)
if option_list:
for option in option_list:
self.add_option(option)

def _create_option_list(self):
self.option_list = []
Expand Down

0 comments on commit e624121

Please sign in to comment.