Skip to content

Commit

Permalink
output.py: Make returncode always return something for interface cons…
Browse files Browse the repository at this point in the history
…istency
  • Loading branch information
dol-sen committed Jan 22, 2017
1 parent 1118ae3 commit d5586ab
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pyGPG/output.py
Expand Up @@ -162,8 +162,9 @@ def returncode(self):
@rtype int
'''
return self.gpg.returncode

if self.gpg:
return self.gpg.returncode or -1
return -1

@property
def no_pubkey(self):
Expand Down

0 comments on commit d5586ab

Please sign in to comment.