Ugly error if local repository not found

Bug #1029469 reported by Jonathan Lange on 2012-07-26
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-jitsu
Undecided
Unassigned

Bug Description

$ jitsu import --repository=/no/way/this/will/exist environment-dump.json
...
2012-07-26 15:10:16,508 juju.common:INFO Connected to environment.
Unhandled error in Deferred:
Unhandled Error
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 391, in errback
    self._startRunCallbacks(fail)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 458, in _startRunCallbacks
    self._runCallbacks()
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 545, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1095, in gotResult
    _inlineCallbacks(r, g, deferred)
--- <exception caught here> ---
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1037, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 382, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/usr/share/juju-jitsu/sub-commands/import", line 163, in run_one
    yield func(*args, **kw)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1039, in _inlineCallbacks
    result = g.send(result)
  File "/usr/share/juju-jitsu/sub-commands/import", line 69, in load
    repository = LocalCharmRepository(repo_dir)
  File "/usr/lib/python2.7/dist-packages/juju/charm/repository.py", line 44, in __init__
    raise RepositoryNotFound(path)
juju.charm.errors.RepositoryNotFound: No repository found at '/no/way/this/will/exist'
j

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers