hut/ranger — Issue #27: Exception when passing a path to the file as argument
Author: sgtpep
Created: 2012-02-15 23:21:00+00:00
State: open

`ranger ~/somedir/` works fine, while `ranger ~/somedir/somefile` raises exception:

```
Traceback (most recent call last):
File "/usr/lib/python3.2/site-packages/ranger/core/runner.py", line 227, in __call__
self.fm.signal_emit('runner.execute.before',
AttributeError: 'NoneType' object has no attribute 'signal_emit'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/bin/ranger", line 52, in
sys.exit(ranger.main())
File "/usr/lib/python3.2/site-packages/ranger/core/main.py", line 85, in main
runner(files=[File(target)], mode=arg.mode, flags=arg.flags)
File "/usr/lib/python3.2/site-packages/ranger/core/runner.py", line 242, in __call__
self.fm.signal_emit('runner.execute.after',
AttributeError: 'NoneType' object has no attribute 'signal_emit'
```