~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to lib/common/makeuser.py

  • Committer: mattgiuca
  • Date: 2008-06-23 06:31:15 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:782
makeuser.py: If the template file cannot be found, prints a warning comment at
    the top of the generated conf.py file, rather than just doing nothing.
    (Possibly should throw an exception, but this may be too drastic. Err on
    the side of "keep running but make it debuggable").

Show diffs side-by-side

added added

removed removed

Lines of Context:
331
331
    except:
332
332
        # Couldn't open template conf.py for some reason
333
333
        # Just treat it as empty file
334
 
        template_conf_data = ""
 
334
        template_conf_data = ("# Warning: Problem building config script.\n"
 
335
                              "# Could not find template conf.py file.\n")
335
336
 
336
337
    # Remove the target conf file if it exists
337
338
    try: