Skip to content

Commit

Permalink
Merge 39dfa14 into b220da2
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaheedHaque committed Jul 2, 2018
2 parents b220da2 + 39dfa14 commit e53535b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyreportjasper/jasperpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,9 @@ def execute(self, run_as_user=False):
output = subprocess.run(
self.command, shell=True, check=True).returncode
except AttributeError:
output = subprocess.check_call(self.command, shell=True)
output = subprocess.check_output(self.command, shell=True)
except subprocess.CalledProcessError as e:
logger.exception(str(e))
logger.exception(e.output)
raise NameError('Your report has an error and couldn '
'\'t be processed!\ Try to output the command '
'using the attribute `command;` and run it '
Expand Down

0 comments on commit e53535b

Please sign in to comment.