diff --git a/pgcli/main.py b/pgcli/main.py index d49c86a66..c53d60b04 100644 --- a/pgcli/main.py +++ b/pgcli/main.py @@ -1974,7 +1974,7 @@ def parse_service_info(service): with open(service_file, newline="") as f: skipped_lines = skip_initial_comment(f) try: - service_file_config = ConfigObj(f) + service_file_config = ConfigObj(f, comment_tokens=[]) except ParseError as err: err.line_number += skipped_lines raise err