Skip to content

Commit

Permalink
removed debug statements
Browse files Browse the repository at this point in the history
  • Loading branch information
proycon committed Jan 28, 2017
1 parent 01794ab commit fdb5629
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions clam/common/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,15 +151,14 @@ def request(self, url='', method = 'GET', data = None, parse=True, encoding=None
data = self._parse(content)
if data:
if data.errors:
print("DEBUG: errors found",file=sys.stderr)
error = data.parametererror()
print("DEBUG: parametererror=" + str(error),file=sys.stderr)
for parametergroup, parameters in data.parameters: #pylint: disable=unused-variable
for parameter in parameters:
print("DEBUG: ", parameter.id, parameter.error,file=sys.stderr)
#print("DEBUG: parametererror=" + str(error),file=sys.stderr)
#for parametergroup, parameters in data.parameters: #pylint: disable=unused-variable
# for parameter in parameters:
# print("DEBUG: ", parameter.id, parameter.error,file=sys.stderr)
if error:
raise clam.common.data.ParameterError(error)
print(content,file=sys.stderr)
#print(content,file=sys.stderr)
raise clam.common.data.PermissionDenied(data)
else:
raise clam.common.data.PermissionDenied(content)
Expand Down

0 comments on commit fdb5629

Please sign in to comment.