Commit c5d3cda8 authored by Germain Clavier's avatar Germain Clavier 😺
Browse files

Added error catch in solution template for simplicity

parent f29f0617
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -9,16 +9,20 @@ import time
import argparse as ap

def solve1(file=None, verbose=False, solution=0):
    if file:
    try:
        with open(file, 'r') as f:
            pass
    except ValueError:
        pass

    return solution

def solve2(file=None, verbose=False, solution=0):
    if file:
    try:
        with open(file, 'r') as f:
            pass
    except ValueError:
        pass

    return solution