Skip to content

Commit

Permalink
Set cqlshlib.serverversion to UNKNOWN if not found
Browse files Browse the repository at this point in the history
Patch by brandonwilliams; reviewed by mck and paulo for CASSANDRA-19020
  • Loading branch information
driftx committed Nov 13, 2023
1 parent 359700d commit d41afac
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bin/cqlsh.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,10 @@ def find_zip(libprefix):
formatter_for)
from cqlshlib.tracing import print_trace, print_trace_session
from cqlshlib.util import get_file_encoding_bomsize, trim_if_present
from cqlshlib.serverversion import version as build_version
try:
from cqlshlib.serverversion import version as build_version
except ImportError:
build_version = "UNKNOWN"

DEFAULT_HOST = '127.0.0.1'
DEFAULT_PORT = 9042
Expand Down

0 comments on commit d41afac

Please sign in to comment.