Script exit with no output

Traceback (most recent call last):
  File "tgnews.py", line 115, in <module>
    threads_handle(input_filenames)
  File "tgnews.py", line 89, in threads_handle
    print(dumps(n_t.form_thread(file_names_list)))
  File "./clustering/thread_former.py", line 19, in form_thread
    self.algo.fit(corpus[target_lang])
  File "./clustering/algos/agglomerative_algo.py", line 13, in fit
    return self.wrapped.fit(data)
  File "./venv/lib/python3.6/site-packages/sklearn/cluster/_agglomerative.py", line 819, in fit
    X = self._validate_data(X, ensure_min_samples=2, estimator=self)
  File "./venv/lib/python3.6/site-packages/sklearn/base.py", line 420, in _validate_data
    X = check_array(X, **check_params)
  File "./venv/lib/python3.6/site-packages/sklearn/utils/validation.py", line 73, in inner_f
    return f(**kwargs)
  File "./venv/lib/python3.6/site-packages/sklearn/utils/validation.py", line 624, in check_array
    "if it contains a single sample.".format(array))
ValueError: Expected 2D array, got 1D array instead:
array=[].
Reshape your data either using array.reshape(-1, 1) if your data has a single feature or array.reshape(1, -1) if it contains a single sample.