From 0bbafc4cc52d02f763db93b67703113b88db9107 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sat, 31 Mar 2018 21:15:48 +0200 Subject: [PATCH] Improve resilience of main.py --- main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.py b/main.py index 11c2d56..daebc00 100644 --- a/main.py +++ b/main.py @@ -20,6 +20,9 @@ def create_arg_parser(): def show_meta(file_name:str): p = parser_factory.get_parser(file_name) + if p is None: + print("[-] %s's format (%s) is not supported" % (file_name, p)) + return for k,v in p.get_meta().items(): print("%s: %s" % (k, v))