Removed unused code
At the bottom of the file, an exception is raised when __name__ == '__main__', stating that it's not allowed to run the file in that way. It's silly to then still set up logging in that case.
This commit is contained in:
@@ -37,10 +37,6 @@ del path
|
|||||||
import logging
|
import logging
|
||||||
log = logging.getLogger("bam_cli")
|
log = logging.getLogger("bam_cli")
|
||||||
|
|
||||||
# if we're a module, don't mess with logging level
|
|
||||||
if __name__ == "__main__":
|
|
||||||
logging.basicConfig(level=logging.DEBUG)
|
|
||||||
|
|
||||||
|
|
||||||
def fatal(msg):
|
def fatal(msg):
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
Reference in New Issue
Block a user