Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle subdirectories with match.py script #19

Open
irreality177 opened this issue Jan 26, 2016 · 0 comments
Open

Handle subdirectories with match.py script #19

irreality177 opened this issue Jan 26, 2016 · 0 comments

Comments

@irreality177
Copy link
Contributor

If directory that contains messages also contains subdirectories the match.py script exits with Traceback like the following:

Traceback (most recent call last):
  File "scripts/match.py", line 118, in <module>
    main()
  File "scripts/match.py", line 95, in main
    for msgf in message_list:
  File "scripts/match.py", line 26, in __call__
    msgf = super(MessageList, self).__call__(path)
  File "/usr/lib/python2.7/argparse.py", line 1142, in __call__
    raise ArgumentTypeError(message % (string, e))
argparse.ArgumentTypeError: can't open '/root/msgs/1': [Errno 21] Is a directory: '/root/msgs/1'

Such case should be handled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants