shlomi-noach / openarkkit

Automatically exported from code.google.com/p/openarkkit
24 stars 16 forks source link

exit exception of oak-online-alter-table #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
OS: CentOS release 5.4 (Final)
python: python-2.4.3-27.el5
MySQL-python: MySQL-python-1.2.1-1

[root@localhost]# oak-online-alter-table
-- ERROR: Errors found. Initiating cleanup
-- ERROR: No table specified. Specify with -t or --table
exceptions.Exception 'str' object is not callable
-- ERROR: Errors found. Initiating cleanup
-- ERROR: 'str' object is not callable
Traceback (most recent call last):
  File "/usr/local/bin/oak-online-alter-table", line 957, in ?
    exit_with_error(err)
  File "/usr/local/bin/oak-online-alter-table", line 856, in exit_with_error
    exit(1)
TypeError: 'str' object is not callable

After googling, the error above, which could be harmless seems could be fixed 
using sys.exit() instead of exit() around line 856.

Original issue reported on code.google.com by i%h2l.n...@gtempaccount.com on 5 Jul 2011 at 3:24

GoogleCodeExporter commented 9 years ago
Fixed in revision 186 (not yet released).

Shamefully, I knew about this from another tool. I need to review them all.

Original comment by shlomi.n...@gmail.com on 5 Jul 2011 at 9:22