Ignore:
Timestamp:
Aug 12, 2019, 4:20:41 PM (5 years ago)
Author:
Murray Heymann <heymann.murray@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
87d423b777b7762ac55fd9308018f3d7a12b9940
Parents:
b03e2f1e6cf3ff16ea956608cf7b560430904959
git-author:
Murray Heymann <heymann.murray@gmail.com>2019-08-12 16:20:41+02:00
git-committer:
Murray Heymann <heymann.murray@gmail.com>2019-08-12 16:20:52+02:00
Message:
Create dir in home for cache files for ml
File:
1 edited

Legend:

Unmodified
Added
Removed
  • machine_learning/ml_python/common/keyword_vector.py

    rb03e2f rcd552e  
    2020        print("Please provide a valid input file as argument to read "
    2121              "dictionary")
    22         if sys.version_info[0] == 3: # pylint: disable=no-else-raise
    23             raise FileNotFoundError
    24         else:
    25             raise IOError
     22        print(filename)
     23        raise IOError
    2624
    2725
     
    4846        if not os.path.isfile(filename):
    4947            print("Please provide a valid input file as argument")
    50             if sys.version_info[0] == 3: # pylint: disable=no-else-raise
    51                 raise FileNotFoundError
    52             else:
    53                 print(filename)
    54                 raise IOError
     48            print(filename)
     49            raise IOError
    5550    assert dictionary is not None, \
    5651            "Please provide a valid dictionary as argument"
Note: See TracChangeset for help on using the changeset viewer.