diff --git a/au_notebook.py b/au_notebook.py index 6e3daf2..cdcb13f 100644 --- a/au_notebook.py +++ b/au_notebook.py @@ -299,10 +299,10 @@ def write_output(self, stdout, results): :return: None. """ try: - with open(filename, "w") as output: + with open(stdout, "w") as output: for value in results: - output_file_write(str(value)) - except: + output.write(str(value)) + except Exception as exp: print("Error writing the file.") def sentiment_scores(self, by="domain"): diff --git a/setup.py b/setup.py index 840ce5d..309948c 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ setup( name='au_notebook', - version='0.0.2', + version='0.0.3', url='https://github.com/archivesunleashed/au_notebook', install_requires=['matplotlib', 'networkx', 'nltk', 'numpy', 'pandas'], author='Ryan Deschamps, Nick Ruest',