Skip to content

Commit

Permalink
Prevent casting to bool
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kus committed Mar 19, 2020
1 parent 8517654 commit 77ab05b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytezos/repl/blockchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def do_source(ctx: Context, prim, args, annots):
@instruction('NOW')
def do_now(ctx: Context, prim, args, annots):
res = ctx.get('NOW')
if not res:
if res is None:
network = ctx.get('NETWORK')
if network:
interop = Interop().using(network)
Expand Down

0 comments on commit 77ab05b

Please sign in to comment.