equal
deleted
inserted
replaced
58 if not options.message or len(options.message) == 0: |
58 if not options.message or len(options.message) == 0: |
59 get_logger().warning("No message exiting") |
59 get_logger().warning("No message exiting") |
60 sys.exit() |
60 sys.exit() |
61 |
61 |
62 conn_str = options.database.strip() |
62 conn_str = options.database.strip() |
63 if not re.match("^\w+://.+", conn_str): |
63 if not re.match(r"^\w+://.+", conn_str): |
64 conn_str = 'sqlite:///' + conn_str |
64 conn_str = 'sqlite:///' + conn_str |
65 |
65 |
66 engine, metadata, Session = setup_database(conn_str, echo=((options.verbose-options.quiet)>0), create_all = False) |
66 engine, metadata, Session = setup_database(conn_str, echo=((options.verbose-options.quiet)>0), create_all = False) |
67 |
67 |
68 conn = None |
68 conn = None |