Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when entering blank string after creating database. #13

Open
dotancohen opened this issue Jan 17, 2016 · 0 comments
Open

Crash when entering blank string after creating database. #13

dotancohen opened this issue Jan 17, 2016 · 0 comments

Comments

@dotancohen
Copy link
Owner

After creating a new database, with no context such as a "Database created!" message (since added) I simply pressed Enter at the unlabeled prompt. This caused a crash:

$ ./burton.py 

Welcome to Burton 0.1.1!

Please select an operation:
 1. Operating system statistics
 2. Configure and maintain operating system
 3. Configure websites
 4. Configure email
 5. Configure databases
 6. Install applications
 9. View Help, About, License, and Copyright pages
 -. Exit
>> 5

Configure Databases

Please select an operation:
 1. Add/Remove database
 2. Add/Remove users
 3. Backup databases
 0. Go Back
 -. Exit
>> 1

Manage databases

Available databases:
 1. wordpress_clean
 2. Create New Database
 0. Go Back
 -. Exit
>> 2

Create new database

Please enter a new database name:
>> east_west

Database created!   // Actually wasn't here, but I added it to the code so I add it here for reference.

>> 
Traceback (most recent call last):
  File "./burton.py", line 108, in <module>
    main(sys.argv)
  File "./burton.py", line 86, in main
    configure_databases.main(env)
  File "/home/dotancohen/burton/configure_databases.py", line 41, in main
    manage_databases()
  File "/home/dotancohen/burton/configure_databases.py", line 85, in manage_databases
    elif int(operation)-1 == new_db_index:
ValueError: invalid literal for int() with base 10: ''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant