Skip to content

Commit

Permalink
check if ProfileCollection is a class.
Browse files Browse the repository at this point in the history
  • Loading branch information
rueckstiess committed Mar 10, 2015
1 parent ccc8c79 commit d494bba
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mtools/mloginfo/sections/connection_section.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def active(self):

def run(self):
""" run this section and print out information. """
if isinstance(self.mloginfo.logfile, ProfileCollection):
if ProfileCollection and isinstance(self.mloginfo.logfile, ProfileCollection):
print
print " not available for system.profile collections"
print
Expand Down
2 changes: 1 addition & 1 deletion mtools/mloginfo/sections/distinct_section.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def run(self):
and group by matched pattern.
"""

if isinstance(self.mloginfo.logfile, ProfileCollection):
if ProfileCollection and isinstance(self.mloginfo.logfile, ProfileCollection):
print
print " not available for system.profile collections"
print
Expand Down
2 changes: 1 addition & 1 deletion mtools/mloginfo/sections/restart_section.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def active(self):

def run(self):

if isinstance(self.mloginfo.logfile, ProfileCollection):
if ProfileCollection and isinstance(self.mloginfo.logfile, ProfileCollection):
print
print " not available for system.profile collections"
print
Expand Down

0 comments on commit d494bba

Please sign in to comment.