diff options
author | Mathieu Clabaut <mathieu.clabaut@gmail.com> | 2010-07-12 16:32:01 +0200 |
---|---|---|
committer | Mathieu Clabaut <mathieu.clabaut@gmail.com> | 2010-07-12 16:32:53 +0200 |
commit | 1c904b36abdec26b72d32ad7bc1e848c4064c21b (patch) | |
tree | 68df75414cbb0adb724c53b1b38fb363dfb32803 /libbe/command/html.py | |
parent | d63ec5fd3eca61ea53d06a96bfb52170111fc25d (diff) | |
download | bugseverywhere-1c904b36abdec26b72d32ad7bc1e848c4064c21b.tar.gz |
Exception when doing 'be html -e'
'html_gen' was referenced before assignment.
Diffstat (limited to 'libbe/command/html.py')
-rw-r--r-- | libbe/command/html.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libbe/command/html.py b/libbe/command/html.py index e6c4c8c..f4273e9 100644 --- a/libbe/command/html.py +++ b/libbe/command/html.py @@ -104,9 +104,6 @@ class HTML (libbe.command.Command): ]) def _run(self, **params): - if params['export-template'] == True: - html_gen.write_default_template(params['export-template-dir']) - return 0 bugdir = self._get_bugdir() bugdir.load_all_bugs() html_gen = HTMLGen(bugdir, @@ -116,7 +113,10 @@ class HTML (libbe.command.Command): min_id_length=params['min-id-length'], verbose=params['verbose'], stdout=self.stdout) - html_gen.run(params['output']) + if params['export-template'] == True: + html_gen.write_default_template(params['export-template-dir']) + else: + html_gen.run(params['output']) return 0 def _long_help(self): |