~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to shelf.py

  • Committer: Michael Ellerman
  • Date: 2006-06-13 13:20:44 UTC
  • mto: (0.6.1 shelf-win32)
  • mto: This revision was merged to the branch mainline in revision 396.
  • Revision ID: michael@ellerman.id.au-20060613132044-56aea0e248d5c8d2
Fix error handling for non-int patch arguments

Show diffs side-by-side

added added

removed removed

Lines of Context:
81
81
    def __path_from_user(self, patch_id):
82
82
        try:
83
83
            patch_index = int(patch_id)
84
 
        except TypeError:
 
84
        except (TypeError, ValueError):
85
85
            raise CommandError("Invalid patch name '%s'" % patch_id)
86
86
 
87
87
        path = self.__path(patch_index)