mirror of
https://github.com/cedricbonhomme/Stegano.git
synced 2025-06-28 03:06:14 +02:00
Displays a message when the generator is unknown.
This commit is contained in:
parent
f8668a978e
commit
4c2fb50c68
2 changed files with 4 additions and 2 deletions
|
@ -72,7 +72,8 @@ parser.set_defaults(input_image_file = './pictures/Lenna.png',
|
|||
try:
|
||||
generator = getattr(generators, options.generator_function)()
|
||||
except AttributeError as e:
|
||||
raise e
|
||||
print("Unknown generator: {}".format(options.generator_function))
|
||||
exit(1)
|
||||
|
||||
if options.hide:
|
||||
if options.secret_message != "" and options.secret_file == "":
|
||||
|
|
|
@ -174,7 +174,8 @@ if __name__ == '__main__':
|
|||
try:
|
||||
generator = getattr(generators, options.generator_function)()
|
||||
except AttributeError as e:
|
||||
raise e
|
||||
print("Unknown generator: {}".format(options.generator_function))
|
||||
exit(1)
|
||||
|
||||
if options.hide:
|
||||
if options.secret_message != "" and options.secret_file == "":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue