UnboundLocalError

Here's an error I got when selecting the Finance menu after having created some new bases:

Exception in function show at Sun Feb  1 19:23:47 2009 CEST:
Traceback (most recent call last):
  File "/home/paulb/Software/Python/Games/singularity-0.30/code/safety.py", line 58, in safe_call
    return func(*args, **kwargs)
  File "/home/paulb/Software/Python/Games/singularity-0.30/code/graphics/dialog.py", line 189, in show
    result = self.handle(event)
  File "/home/paulb/Software/Python/Games/singularity-0.30/code/graphics/dialog.py", line 306, in handle
    return self.call_handlers(handlers, event)
  File "/home/paulb/Software/Python/Games/singularity-0.30/code/graphics/dialog.py", line 318, in call_handlers
    handler(event)
  File "/home/paulb/Software/Python/Games/singularity-0.30/code/graphics/button.py", line 109, in handle_event
    self.activate_with_sound(event)
  File "/home/paulb/Software/Python/Games/singularity-0.30/code/graphics/button.py", line 122, in activate_with_sound
    self.activated(event)
  File "/home/paulb/Software/Python/Games/singularity-0.30/code/graphics/button.py", line 151, in activated
    self.function(*self.args, **self.kwargs)
  File "/home/paulb/Software/Python/Games/singularity-0.30/code/graphics/button.py", line 197, in show_dialog
    raise constants.Handled, dialog.call_dialog(self.dialog, self)
  File "/home/paulb/Software/Python/Games/singularity-0.30/code/graphics/dialog.py", line 96, in call_dialog
    retval = dialog.show()
  File "/home/paulb/Software/Python/Games/singularity-0.30/code/screens/finance.py", line 121, in show
    return super(FinanceScreen, self).show()
  File "/home/paulb/Software/Python/Games/singularity-0.30/code/graphics/dialog.py", line 175, in show
    Dialog.top.maybe_update()
  File "/home/paulb/Software/Python/Games/singularity-0.30/code/graphics/widget.py", line 297, in maybe_update
    self.update()
  File "/home/paulb/Software/Python/Games/singularity-0.30/code/graphics/widget.py", line 301, in update
    self.prepare_for_redraw()
  File "/home/paulb/Software/Python/Games/singularity-0.30/code/graphics/widget.py", line 293, in prepare_for_redraw
    child.prepare_for_redraw()
  File "/home/paulb/Software/Python/Games/singularity-0.30/code/graphics/widget.py", line 293, in prepare_for_redraw
    child.prepare_for_redraw()
  File "/home/paulb/Software/Python/Games/singularity-0.30/code/graphics/widget.py", line 280, in prepare_for_redraw
    self.rebuild()
  File "/home/paulb/Software/Python/Games/singularity-0.30/code/screens/finance.py", line 51, in rebuild
    cash_info, cpu_info = g.pl.give_time(seconds_left, dry_run=True)
  File "/home/paulb/Software/Python/Games/singularity-0.30/code/player.py", line 298, in give_time
    cpu_available=real_cpu )[0]
UnboundLocalError: local variable 'real_cpu' referenced before assignment